Last active
April 16, 2019 14:34
-
-
Save braddalton/4907453d5ae2cca783ebf54df34baf2b to your computer and use it in GitHub Desktop.
Back to top shortcode for Genesis https://wpsites.net/web-design/add-back-return-to-top-link-in-genesis-footer/
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
add_shortcode( 'top', 'back_to_top_link' ); | |
/** | |
* @author Brad Dalton | |
* @link https://wpsites.net/web-design/add-back-return-to-top-link-in-genesis-footer/ | |
*/ | |
function back_to_top_link() { | |
$top = sprintf( '<a href="%s">' . __( 'Back To Top' ) . '</a>', __( '#' ) ); | |
return $top; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment