Title: dsmith79's Replies | WordPress.org

---

# dsmith79

  [  ](https://wordpress.org/support/users/dsmith79/)

 *   [Profile](https://wordpress.org/support/users/dsmith79/)
 *   [Topics Started](https://wordpress.org/support/users/dsmith79/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dsmith79/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dsmith79/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dsmith79/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dsmith79/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dsmith79/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [warning cannot modify header information headers already sent by output](https://wordpress.org/support/topic/warning-cannot-modify-header-information-headers-already-sent-by-output-1/)
 *  [dsmith79](https://wordpress.org/support/users/dsmith79/)
 * (@dsmith79)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-headers-already-sent-by-output-1/#post-2279899)
 * 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: http://diythemes.com/thesis/rtfm/customizing-with-hooks/
        * Filters: http://diythemes.com/thesis/rtfm/customizing-with-filters/
        * Custom Loop API: http://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)