These code snippets enable you to use genesis filters to:
- Remove all the footer credits text
- Reposition the footer credits text after the footer
- Modify the default footer credits text
All code should be pasted at the end of your child themes functions file using a code editor.
The following code removes the footer text from within the footer:
add_filter('genesis_footer_output', 'sp_footer_creds_filter');
function sp_footer_creds_filter( $creds ) {
$creds = '';
return $creds;
}
This code enables you to reposition the footer credits text to another hook after the footer.
add_action( 'genesis_after_footer', 'sp_footer_creds_text' );
function sp_footer_creds_text() {
echo '<div class="after-footer-credits-text"><p>';
echo 'Copyright © ';
echo date('Y');
echo ' · <a href="http://mydomain.com">My Custom Link</a> · Built on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a>';
echo '</p></div>';
}
The following code enables you to modify the footer links and text:
add_filter( 'genesis_footer_output', 'sp_footer_creds_text' );
function sp_footer_creds_text() {
echo '<div class="creds"><p>';
echo 'Copyright © ';
echo date('Y');
echo ' · <a href="http://mydomain.com">My Custom Link</a> · Built on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a>';
echo '</p></div>';
}
Was This Tutorial Helpful?