-
-
Save braddalton/aec3a6029c1d6b7da82813807731955f to your computer and use it in GitHub Desktop.
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
<?php | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Customize the credits | |
add_filter( 'genesis_footer_creds_text', 'sp_footer_creds_text' ); | |
function sp_footer_creds_text() { | |
echo '<div class="creds"><p>'; | |
echo 'Copyright © '; | |
echo date('Y'); | |
echo ' · <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>'; | |
echo '</p></div>'; | |
} |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Change the footer text | |
add_filter('genesis_footer_creds_text', 'sp_footer_creds_filter'); | |
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>'; | |
return $creds; | |
} |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Reposition the 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 ); | |
add_action( 'genesis_after', 'genesis_footer_markup_open', 11 ); | |
add_action( 'genesis_after', 'genesis_do_footer', 12 ); | |
add_action( 'genesis_after', 'genesis_footer_markup_close', 13 ); |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Customize the return to top of page text | |
add_filter( 'genesis_footer_backtotop_text', 'sp_footer_backtotop_text' ); | |
function sp_footer_backtotop_text($backtotop) { | |
$backtotop = '[footer_backtotop text="Return to Top"]'; | |
return $backtotop; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment