Customize the footer text
add_filter('genesis_footer_creds_text', 'custom_footer_creds_text'); function custom_footer_creds_text($creds) { $creds = '©' . date('Y') . ' ' . get_bloginfo('name') . '. All rights reserved. Powered by <a href="http://wordpress.org/">WordPress</a>.'; echo $creds; }
Remove Footer Content
This will remove the footer credits text and ‘back to top’ link.
add_filter('genesis_footer_output', 'footer_output_filter', 10, 1); function footer_output_filter($footer_content) { $footer_content = ''; return $footer_content; }
Replace Footer With A WordPress Custom Menu
This will replace the default footer with credit text and a WordPress custom navigation menu.
Ex. © Copyright 2011 LBnuke. All rights reserved. Home | About | Archives | Contact
remove_action( 'genesis_footer', 'genesis_do_footer' ); add_action( 'genesis_footer', 'child_do_footer' ); function child_do_footer() { $creds = '© Copyright '. date('Y') . ' ' . get_bloginfo('name') . ' . All rights reserved.'; $footernav = wp_nav_menu( array('menu' => 'footer' )); echo $footernav; ?> <p class="creds"><?php echo $creds; ?></p> <?php }
which file should i put these codes? footer.php or functions.php
The code goes in your child theme’s functions.php file. I probably should have mentioned that!