genesis_footer_creds_text is now deprecated in Genesis 3.0.0+ You can now change it in Genesis footer setting in the Customizer.
You should set the footer_text key in your theme’s child-theme-settings.php file.
–
There is already a basic tutorial of Customizing the Site Footer in Genesis and that could be used with the combination of Genesis Shortcodes.
This tutorial provides the steps to show custom site footer and credit text in any child theme based on Genesis Framework.
The Basic
Enable it for Globally first.
We can change the entire site footer using this in functions.php (not support shortcodes)
///* Customize the entire footer remove_action( 'genesis_footer', 'genesis_do_footer' ); add_action( 'genesis_footer', 'sp_custom_footer' ); function sp_custom_footer() { ?> <p>© 2011 <a href="/">Example LLC</a> · All Rights Reserved · Powered by <a href="http://wordpress.org/">WordPress</a> · <a href="/wp-admin">Dashboard</a></p> <?php }
or We can simply change the site footer Credit text using this in functions.php
//* Change the footer text add_filter('genesis_footer_creds_text', 'gk_footer_creds_filter'); function gk_footer_creds_filter( $creds ) { $creds = '[footer_copyright first="2015"] · <a href="/">GenesisKit</a> · Built on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a>'; return $creds; }
The Conditional tag
We will use WordPress conditional tag to display a custom Credit text using this in functions.php
//* Change the footer text add_filter('genesis_footer_creds_text', 'sp_footer_creds_filter'); function sp_footer_creds_filter( $creds ) { if ( ! is_front_page() ) { return; } $creds = '[footer_copyright first="2015"] · <a href="/">GenesisKit</a> · Built on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a>'; return $creds; }
replace is_front_page() with any conditional tag.
Make sure you have a global Credit text already edited using the basic mentioned at first or We can combine it in a single function.
Use this only in functions.php
add_filter('genesis_footer_creds_text', 'gk_conditional_footer_creds_filter'); function gk_conditional_footer_creds_filter( $creds ) { if ( is_front_page() ) { $creds = 'Front Page Credit'; return $creds; } else { $creds = sprintf( 'GLOBAL Credit'); return $creds; } }