Need help with footer
-
I used this link https://wordpress.org/support/topic/child-theme-footer to add my credits to my footer in the child theme. All I did was copy and paste the code.
acub
Member
Posted 2 years ago #In your functions.php (which should be empty), add this code in between the php markup delimiters:
add_filter(‘tc_credits_display’, ‘my_custom_credits’);
function my_custom_credits(){
echo ‘<div class=”span4 credits”>
<p> · © ‘.esc_attr( date( ‘Y’ ) ).’ ‘.esc_attr(get_bloginfo()).’ · Designed by Themes & Co ·</p></div>’;
}Of course, you’ll need to replace the part between the last two middots with your own stuff.
I saved the file in my chold themes.
I went to look at my website and it is blank! I pressed the back key and the editor page came up so I erased what was there. Isaved the document and looked at my website and again its blank Infact I pressed the “posts” link and that is blank too.
Please can you tell me how I can correct what has gone wrong… in future I will look for the plugins rather than coe something I dont understand|!
Thank you.
-
you must delete your new function via ftp or with cpanel old way not in editor. you will find the file at wp-content/themes/your_theme/function.php
what you see when you press back key it was in your browser cache so you din`t erase nothing i think .Hey Zota,
So I am just looking for the same code in the main themes function.php?
In your child where you made the modification.
Than you very much 🙂 x
The topic ‘Need help with footer’ is closed to new replies.