Editing footer Information
-
Good day Members,
I want to edit the footer information on my site (2014 Broadband Technologies. Designed by Themes & Co). How do i achieve this using a child theme? Please, I will also appreciate the code to achieve that.
Site link: http://www.bbtech.orgThanks.
-
Create a child theme http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme <- Codex
http://zeaks.org/create-a-wordpress-child-theme <- my own guideActivate the child theme
Copy footer.php to the child theme folder, open it and edit the “2014 Broadband Technologies. Designed by Themes & Co” part, save and close.
99% change the code is in footer.php, some themes have an option to change the footer copywrite so check that out first.
This is the code footer.php
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
<?php /** * The template for displaying the footer. * * * @package Customizr * @since Customizr 3.0 */ do_action( '__before_footer' ); ?> <!-- FOOTER --> <footer id="footer" class="<?php echo tc__f('tc_footer_classes', '') ?>"> <?php do_action( '__footer' ); // hook of footer widget and colophon?> </footer> <?php wp_footer(); //do not remove, used by the theme and many plugins do_action( '__after_footer' ); ?> </body> <?php do_action( '__after_body' ); ?> </html> Where do I edit. A developer once told me to add this code to the functions.php in my child theme, I did that but it didn"t work. add_filter('tc_credits_display', 'my_custom_credits'); function my_custom_credits(){ $credits = '© Copyright <?php print date("Y") ?> Broadband technologies Inc, Nigeria'; $newline_credits = ''; 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>'; }
The topic ‘Editing footer Information’ is closed to new replies.