Genesis Footer Credits Text Modifications

These code snippets enable you to use genesis filters to:

  1. Remove all the footer credits text
  2. Reposition the footer credits text after the footer
  3. 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 &copy; ';
echo date('Y');
echo ' &middot; <a href="http://mydomain.com">My Custom Link</a> &middot; 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 &copy; ';
echo date('Y');
echo ' &middot; <a href="http://mydomain.com">My Custom Link</a> &middot; Built on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a>';
echo '</p></div>';
}

Related Tutorials

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.