Change Genesis Footer Text

Whether you are using the default Genesis Framework or a Genesis child theme, you will probably see text in the footer that contains a link back to studiopress or the theme author that you will want to edit. This can easily be done using either action or filter hooks in the functions.php file depending on what type of theme is being used. Most newer themes will be HTML5 Genesis themes, but I’ll include the old method as well in case you run into some older themes along the way.

For HTML5 Genesis Themes

/* Custom Genesis Footer */
add_filter('genesis_footer_creds_text', 'vc_footer_creds_filter');
function vc_footer_creds_filter( $credits ) {
    $credits = '&copy; 2016 &middot; <a href="https://vincoding.com">vincoding</a>';
    return $credits;
}

You can paste this code snippet right into your active wordpress theme’s functions.php file. The only thing that you will need to change is text in the php $credits variable string to your desired output. It’s hooking into the default genesis filter named “genesis_footer_creds_text”, which allows you to change the html displaying in the footer.

For Older Non-HTML5 Genesis Themes

/* Custom Genesis Footer */
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'vc_footer_creds_filter' );
function vc_footer_creds_filter() { ?>
    <p>&copy; <?php echo date('Y'); ?> &middot; <a href="https://vincoding.com">vincoding</a></p>
<?php }

For non-HTML5 genesis themes you would paste this code snippet right into your active wordpress theme’s functions.php file. The difference with this method is that it is using an action hook instead of a filter. So it first removes the initial footer action, then adds it back in with our custom made function that creates the output. Here you will just need to change the straight HTML code that is displaying in the ‘vc_footer_creds_filter’ function. In this example I’ve closed off the php section so you can write straight HTML or text, but if you don’t close off the php code you can also just use an echo statement to output what you want it to display.

Both of these example functions will have the same footer output, which is:
© 2016 · vincoding

This is a nice and simple way to edit the genesis footer text, but there is a plugin if you are intimidated by messing with the php file. While I don’t recommend using a plugin when it can easily be avoided, the Simple Edits plugin can help with editing the footer.

Speak Your Mind

*