• Resolved Rahman Webmaster

    (@rahman-webmaster)


    Hi Customizr Team,

    I don”t know if the footer credit of customisr theme installed on WordPress version 4.0.1 is not editable by this snippet that I copied in functions.php of my child theme.

    ‘ <?php
    add_filter(‘tc_credits_display’, ‘my_custom_credits’);
    function my_custom_credits(){
    $credits = ‘Developed by ICT Centre’;
    $newline_credits = ‘My site‘;
    return ‘

    · ? ‘.esc_attr( date( ‘Y’ ) ).’ ‘.esc_attr(get_bloginfo()).’ · ‘.($credits ? $credits : ‘Urban Interiors’).’ ·’.($newline_credits ? $newline_credits.’ ·’ : ”).’ ‘;
    }
    ?> ‘

    But other customizr theme users are confessing the code above works for them.

    Even I also tried this code in the functions.php of my child theme
    ‘<?php
    add_filter(‘tc_credits_display’, ‘my_custom_credits’);
    add_filter(‘tc_credits_display’, ‘my_custom_credits’);
    function my_custom_credits(){
    return ‘<div class=”span4 credits”><p>ADD YOUR TEXT HERE</p></div>’;
    }
    ?> ‘

    It still didn’t change the footer credit. Is it because I am using a new version of wordpress/

    Thanks for the anticipated and urgent reply.

Viewing 8 replies - 1 through 8 (of 8 total)
  • 1. remove one of these:

    add_filter('tc_credits_display', 'my_custom_credits');
    add_filter('tc_credits_display', 'my_custom_credits');

    of course not crtical.

    2. is this your site?
    https://www.bbtech.org

    Thread Starter Rahman Webmaster

    (@rahman-webmaster)

    @ d45_c0nf,
    I am very happy you saw this post boss, in fact your are my target audience.

    Yes, that is my site.
    So if I remove one of the add_filter functions. the code will work for me right.

    Thread Starter Rahman Webmaster

    (@rahman-webmaster)

    I have just tried that. The code has not changed my footer credit.

    Nope, it was just redundant.
    The thing is that you’re not using a child-theme in that site.
    You’ve created a child-theme and you’ve added that snippet in your child-theme functions.php, but you’re not using it ??
    You have to activate the child-theme in Apperance -> Themes

    Thread Starter Rahman Webmaster

    (@rahman-webmaster)

    My boooooooooooooooooooosssssssssssssssssssssss,
    I am very happy thank you all the way. It has worked.
    You are my model.
    If I use my use the upper code, hope it will still work?

    How did you know that my child theme is not activated, boss?

    Yeah should work.
    Looking at the source of your page I saw that you were loading wp-content/themes/customizr/style.css and not wp-content/themes/whateverchildname/style.css.
    That’s all.
    Could you mark this topic as resolved?
    Thank you ??

    Thread Starter Rahman Webmaster

    (@rahman-webmaster)

    Thank you once more, I am grateful

    You’re welcome ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Editing Footer Credit in WordPress 4.0.1’ is closed to new replies.