Support » Themes and Templates » Customizr child theme functions.php file

  • Resolved Leapmkt12


    HI I am continually getting this error
    ‘Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/themes/Mermaid/functions.php:1) in /public_html/wp-includes/pluggable.php on line 1121’

    I have gone right over this file to make sure there are no spaces or empty lines. This is in my child theme. WHat have I done wrong??

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi


    Forum Moderator

    You have a problem in the functions.php file of the child theme (Mermaid).

    Thanks Esmi, I am aware of where the issue is, as stated I have gone right over this file (functions.php)to make sure there are no spaces or empty lines. This is in my child theme. I am looking for someone to throw a second set of eyes over & tell what I’m missing, as it has to be something pretty basic. Usually this comes up with a space in the code and I’ve gone over this so many times it not funny 😛
    The website is

    add_action( ‘__after_logo’ , ‘display_my_site_title’);
    function display_my_site_title() {
    //first checks if there is a logo uploaded
    $logo_src = esc_url ( tc__f( ‘__get_option’ , ‘tc_logo_upload’) ) ;
    if ( empty($logo_src) )
    //then print the site title after
    esc_url( home_url( ‘/’ ) ),
    esc_attr( get_bloginfo( ‘name’) ),
    esc_attr( get_bloginfo( ‘description’ ) ),
    esc_attr( get_bloginfo( ‘name’) )
    //remove ‘Category Archives:’ text
    add_filter(‘tc_category_archive_title’, ‘rdc_category_archive_title’);
    function rdc_category_archive_title($output) {
    return preg_replace(‘|Category Archives:|’, null, $output);
    add_filter(‘tc_credits_display’, ‘my_custom_credits’);
    function my_custom_credits(){
    $credits = ‘Created by Marketing Leap‘;
    $newline_credits = ‘Contact Marketing Leap‘;
    return ‘
    <div class=”span4 credits”>
    <p> · © ‘.esc_attr( date( ‘Y’ ) ).’ ‘.esc_attr(get_bloginfo()).’ · ‘.($credits ? $credits : ‘Developed by Marketing Leap‘).’ ·’.($newline_credits ? ‘
    · ‘.$newline_credits.’ ·’ : ”).'</p> </div>’;
    add_filter(‘tc_slider_display’, ‘content_after_slider’);
    function content_after_slider($html) {
    $after_slider = ‘

    Mermaid Paving and Tiling are the Gold Coast\’s Paving and Tiling specialists. With more than 20 years experience, we look after some of the biggest pool companies here on the Gold Coast,as well as resorts and even domestic home paving and tiling. We are the experts from sandstone to porcelain and strive to give you the finish you deserve.

    We cater for the following:

    • Residential paving and tiling, from bathrooms to driveways
    • Commercial paving and tiling
    • All pool tiling and surrounds
    • Pool renovations both residential and commercial
    • Artistic Rock work, from sandstone to pebble paving and tiling


    We guarantee our work to the highest standard and we take the time with you to ensure we understand what you need and want from your tiling or paving project. In turn, you receive the best professional advice not only on the materials but the best procedure for your job.

    //Put your HTML inside this var
    return $html.$after_slider;
    add_filter (‘tc_social_in_header’ , ‘custom_social_in_header’);
    function custom_social_in_header($resp) {
    //class added if not resp
    $class = (‘resp’ == $resp) ? ”:’span5′
    <div class=”social-block <?php echo $class ?>”>
    <?php if ( 0 != tc__f( ‘__get_option’, ‘tc_social_in_header’) ) : ?>
    <?php echo tc__f( ‘__get_socials’ ) ?>
    PH: 0404 448 491
    <img src=””>
    <?php endif; ?>

    All sorted found a spare ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Customizr child theme functions.php file’ is closed to new replies.