• Resolved tonyx4x44

    (@tonyx4x44)


    how do i modify the date on the footer credits

    so it becomes manual

    instead of 2016 i want 2015-2016

    using the normal code

    add_filter('tc_credits_display', 'my_custom_credits', 20);
    function my_custom_credits(){
    $credits = '';
    $newline_credits = '';
    return '
    <div class="span6 credits">
        		    	<p> &middot; &copy; '.esc_attr( date( 'Y' ) ).' <a href="'.esc_url( home_url() ).'" title="'.esc_attr(get_bloginfo()).'" rel="bookmark">'.esc_attr(get_bloginfo()).'</a> &middot; '.($credits ? $credits : 'Designed by <a href="https://www.presscustomizr.com/">Press Customizr</a>').' &middot;'.($newline_credits ? '<br />&middot; '.$newline_credits.' &middot;' : '').'</p>		</div>';
    }

    thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Menaka S.

    (@menakas)

    Hi Tony,
    Try changing it to this.

    add_filter('tc_credits_display', 'my_custom_credits', 20);
    function my_custom_credits(){
    $credits = '';
    $newline_credits = '';
    return '
    <div class="span6 credits">
        		    	<p> &middot; &copy; 2015 - 2016 <a href="'.esc_url( home_url() ).'" title="'.esc_attr(get_bloginfo()).'" rel="bookmark">'.esc_attr(get_bloginfo()).'</a> &middot; '.($credits ? $credits : 'Designed by <a href="https://www.presscustomizr.com/">Press Customizr</a>').' &middot;'.($newline_credits ? '<br />&middot; '.$newline_credits.' &middot;' : '').'</p>		</div>';
    }

    Thread Starter tonyx4x44

    (@tonyx4x44)

    Fixed… Thanks Menaka

    jporozynski

    (@jporozynski)

    I’m trying to do a similar change, but can’t seem to find which file I should be editing for this. Please assist!

    Menaka S.

    (@menakas)

    Hi jporozynski,
    Started a fresh thread with your requirement.

    jporozynski

    (@jporozynski)

    I don’t see it…you say you started it?

    Thread Starter tonyx4x44

    (@tonyx4x44)

    she telling you to create a new thread.

    to get it to work just copy the entire code she posted to the functions.php of your child theme

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘footer credit date modification’ is closed to new replies.