Title: Child Theme problem
Last modified: March 2, 2017

---

# Child Theme problem

 *  Resolved [Oldjim](https://wordpress.org/support/users/oldjim/)
 * (@oldjim)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/child-theme-problem-25/)
 * I am getting intermittent error messages when using the Child Theme such as
 * > Warning: Cannot modify header information – headers already sent by (output
   > started at /homepages/13/********/htdocs/WPTest1/wp-content/themes/customizr-
   > child/functions.php:9) in /homepages/13/*******/htdocs/WPTest1/wp-includes/
   > pluggable.php on line 1179
 * I can’t see anything in the child theme CSS or PHP files which would do this
   
   I have removed the full identifier from the error message
    -  This topic was modified 9 years, 3 months ago by [Oldjim](https://wordpress.org/support/users/oldjim/).
    -  This topic was modified 9 years, 3 months ago by [Oldjim](https://wordpress.org/support/users/oldjim/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Denzel Chia](https://wordpress.org/support/users/denzel_chia/)
 * (@denzel_chia)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/child-theme-problem-25/#post-8868466)
 * Hi,
 * Check for empty white space before your code.
 * Thank you.
 *  Thread Starter [Oldjim](https://wordpress.org/support/users/oldjim/)
 * (@oldjim)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/child-theme-problem-25/#post-8869706)
 * There doesn’t appear to be any spaces but this is the php file which causes the
   problem
 *     ```
       <?php
       add_filter('tc_credits_display', 'my_custom_credits');
       function my_custom_credits(){
       echo '<div class="span4 credits">
       <p> Copyright '.esc_attr( date( 'Y' ) ).'  All Rights Reserved.  </p></div>';
       }
   
       ?>
       ```
   
 *  [Denzel Chia](https://wordpress.org/support/users/denzel_chia/)
 * (@denzel_chia)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/child-theme-problem-25/#post-8872801)
 * Hi,
 * You should use return, not echo.
 * Thank you
 *  Thread Starter [Oldjim](https://wordpress.org/support/users/oldjim/)
 * (@oldjim)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/child-theme-problem-25/#post-8873422)
 * Sorted – thanks for picking up my mistake

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Child Theme problem’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Oldjim](https://wordpress.org/support/users/oldjim/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/child-theme-problem-25/#post-8873422)
 * Status: resolved