public
Last active

Customize the footer of your site using the Genesis Framework.

  • Download Gist
functions.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<?php
//* Do NOT include the opening php tag
 
//* Customize the return to top of page text
add_filter( 'genesis_footer_backtotop_text', 'bg_footer_backtotop_text' );
function bg_author_box_gravatar_size($backtotop) {
$backtotop = '[[footer_backtotop text="Return to Top"]]';
return $backtotop;
}
 
//* Customize the credits
add_filter( 'genesis_footer_creds_text', 'bg_footer_creds_text' );
function bg_footer_creds_text() {
echo '<div class="creds"><p>';
echo 'Copyright &copy; ';
echo date('Y');
echo ' &middot; <a href="http://mydomain.com">My Custom Link</a> &middot; Built on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a>';
echo '</p></div>';
}
 
//* Customize the entire footer
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'bg_footer' );
function bg_footer() {
?>
<p>&copy; Copyright 2013 <a href="http://mydomain.com/">My Domain</a> &middot; All Rights Reserved &middot; Powered by <a href="http://wordpress.org/">WordPress</a> &middot; <a href="http://mydomain.com/wp-admin">Admin</a></p>
<?php
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.