Add link in footer credits
-
Hi !
I would like to edit the footer credits by adding some text but i don’t find how to add another link to “Jviney”So i have this at the moment :
printf( '<div class="span4 credits"><p> · © %1$s <a href="%2$s" title="%3$s" rel="bookmark">%3$s</a> · '.__('Designed by ','customizr').'<a href="http://www.themesandco.com">Themes & Co</a> · Made by JViney</p></div>', esc_attr( date('Y') ), esc_url( home_url() ), esc_attr(get_bloginfo()), esc_html( get_the_date() ) ); //printf($credits); ?>
I’m searching since yesterday but i can’t find the answer.
The file that i need to modify is “class-footer-footer_main.php” isn’t it ?Thanks for help guys !
Best regards
Viewing 3 replies - 1 through 3 (of 3 total)
-
No, don’t edit the core files. You can do this with a snippet: http://www.themesandco.com/snippet/altering-adding-footer-credits/
I saw this snippet, the fact is that i don’t know how to code it in php
add_filter('tc_credits_display', 'my_custom_credits'); function my_custom_credits(){ $credits = ''; $newline_credits = 'and made by <a href="http://www.maman.com/">Maman_ '; return ' <div class="span4 credits"> <p> · © '.esc_attr( date( 'Y' ) ).' </a><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>'; }
It would be good like that ?
add_filter('tc_credits_display', 'my_custom_credits'); function my_custom_credits(){ $credits = 'Made by <a href="http://www.maman.com/">Maman</a>'; $newline_credits = 'and designed by <a href="http://www.themesandco.com/">Themes & Co</a>'; return ' <div class="span4 credits"> <p> · © '.esc_attr( date( 'Y' ) ).' </a><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>'; }
I found the answer !
Thanks so much 😀
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add link in footer credits’ is closed to new replies.