Last active
September 29, 2019 14:25
-
-
Save 3200creative/6895833 to your computer and use it in GitHub Desktop.
custom footer text for the Genesis Framework - HTML5 / Genesis 2.0
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
// Remove site footer. | |
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); | |
remove_action( 'genesis_footer', 'genesis_do_footer' ); | |
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); | |
// Customize site footer | |
add_action( 'genesis_footer', 'sp_custom_footer' ); | |
function sp_custom_footer() { | |
$creds_text_start = 'Copyright '. do_shortcode( "[footer_copyright]" ).' '; | |
$bloginfo = get_bloginfo( $show ); | |
$creds_text_end = 'Site Design by <a href="http://3200creative.com" title="Site Design by 3200 Creative - 3200creative.com" target="_blank">3200 Creative</a>'; | |
echo '<div style="text-align:center; width: 100%; padding-top: 20px;"><p>' . $creds_text_start . $bloginfo .' | '. $creds_text_end . '</p></div>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment