• Resolved Oldjim

    (@oldjim)


    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, 1 month ago by Oldjim.
    • This topic was modified 9 years, 1 month ago by Oldjim.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Check for empty white space before your code.

    Thank you.

    Thread Starter Oldjim

    (@oldjim)

    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>';
    }
    
    ?>

    Hi,

    You should use return, not echo.

    Thank you

    Thread Starter Oldjim

    (@oldjim)

    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.