Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi

    I have a similar issue to salvadorfigueros who started this thread. I made a change to my custom_functions.php script in the Thesis theme and now when I try to log in to wp-admin it gives me the following error message:

    “Warning: Cannot modify header information – headers already sent by (output started at /home/altparis/public_html/wp-content/themes/thesis_184/custom/custom_functions.php:1) in /home/altparis/public_html/wp-includes/pluggable.php on line 881”

    The site is viewable, however.

    Originally I had another error message, which if I remember correctly was something along the lines of:

    Parse error: syntax error, unexpected $end in /XXX/themes/thesis_17/custom/custom_functions.php on line x.

    At that junction the site wasn’t even viewable.

    I reset custom_functions.php in my hosting Cpanel to what it was before the hiccup , and now I just receive the former error message and the site is viewable.

    Please let me know if there’s a solution as I’ve got to a point with the design I’m happy with and really don’t want to have to wipe the slate and start again.

    Here’s the custom-functions.php code as it is installed now.

    <?php
    /* By taking advantage of hooks, filters, and the Custom Loop API, you can make Thesis
     * do ANYTHING you want. For more information, please see the following articles from
     * the Thesis User’s Guide or visit the members-only Thesis Support Forums:
     *
     * Hooks: https://diythemes.com/thesis/rtfm/customizing-with-hooks/
     * Filters: https://diythemes.com/thesis/rtfm/customizing-with-filters/
     * Custom Loop API: https://diythemes.com/thesis/rtfm/custom-loop-api/
    
    ---:[ place your custom code below this line ]:---*/
    
    remove_action  ('thesis_hook_before_header', 'thesis_nav_menu');
    add_action ('thesis_hook_after_header', 'thesis_nav_menu');
    remove_action('thesis_hook_footer', 'thesis_attribution');
    function copyright() {
    		echo '<p>Copyright Alternative Paris ' . date('Y') . '</p>';
    }
    add_action('thesis_hook_footer', 'copyright', '99');
    
    function custom_remove_defaults($content) {
    	return false;
    }
    
    function my_sales_page() {
    	if (is_page('39')) {
    		add_filter('thesis_show_header', 'custom_remove_defaults');
    		add_filter('thesis_show_sidebars', 'custom_remove_defaults');
    		add_filter('thesis_show_footer', 'custom_remove_defaults');
    	}
    }
    
    add_action('template_redirect','my_sales_page');
    ?>
Viewing 1 replies (of 1 total)