Last active
April 16, 2019 14:34
-
-
Save braddalton/c92e40ed25a1884a4bfa76c671461b53 to your computer and use it in GitHub Desktop.
Genesis Back To Top Footer Link https://wp.me/p1lTu0-h9G
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Don't copy this opening PHP tag | |
add_filter('genesis_footer_creds_text', 'sp_footer_creds_filter'); | |
/** | |
* @author Brad Dalton | |
* @link https://wpsites.net/web-design/add-back-return-to-top-link-in-genesis-footer/ | |
*/ | |
function sp_footer_creds_filter( $creds ) { | |
$creds = '[footer_copyright] · <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> · <a href="#">' . __( 'Back To Top' ) . '</a>'; | |
return $creds; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment