• Resolved gerwyn

    (@gerwyn)


    Am trying to change the footer copyright information with my own details (e.g Company registration etc).

    Have set up a child theme, and followed the developer’s instructions here.

    However after all this, it’s still showing the default… Any suggestions?

    Website is at http://www.serw.co.uk

Viewing 7 replies - 1 through 7 (of 7 total)
  • Doesn’t look like you have a child theme active on your site. You need to activate it like switching to any other new theme.

    Thread Starter gerwyn

    (@gerwyn)

    Have switched now to the child theme, and uploaded the new functions.php file and got gibberish appearing on the site? Help please!

    functions.php of your child theme should NOT be a copy of it’s parent counterpart. When just created, it should look like this (empty):

    <?php

    When you start adding functions, you do it from 2nd line on.

    Here’s an article on how to create a child theme for Customizr (or any other WP theme, for that matter).

    Thread Starter gerwyn

    (@gerwyn)

    Thanks acub, have followed that completely. What I had forgotten to do was add <?php and ?> tags, hence the gibberish.

    When I upload this in the functions.php in the child theme, I get the following error message.

    Parse error: syntax error, unexpected T_FUNCTION, expecting T_STRING in /home/barrycum/public_html/sites/serw.co.uk/wp-content/themes/customizr-child/functions.php on line 10

    Here’s what I’m uploading, the only changes is the hello and test entries. Not sure what I’m doing wrong.

    [ Moderator note: please wrap code in backticks or use the code button. Do not use blockquote. ]

    <?php
    add_filter('tc_credits_display', 'my_custom_credits');
    function my_custom_credits(){
    $credits = 'hello';
    $newline_credits = 'Test';
    return '
    <div class="span4 credits">
                        <p> · © '.esc_attr( date( 'Y' ) ).' <a href="'.esc_url( home_url() ).'" title="'.esc_attr(get_bloginfo()).'" rel="bookmark">'.esc_attr(get_bloginfo()).'</a> · '.($credits ? $credits : 'Designed by <a href="http://www.themesandco.com/">Themes & Co</a>').' ·'.($newline_credits ? '· '.$newline_credits.' ·' : '').'</p>        </div>';
    }
    ?>
    Thread Starter gerwyn

    (@gerwyn)

    Found the root of the problem, and fixed it. Thanks for the assistance.

    You were sending output before headings, after the ?>.

    Either make sure there’s nothing but the end of file after ?> (no space, no new line, etc) or just remove it (delete the ?> from the end), so the php mode doesn’t end, hence, no output, regardless of how many new lines, tabs or spaces you have before the EoF.

    Ending functions.php without exiting php mode is safe, as it’s a “pure php” file.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Altering footer credits’ is closed to new replies.