Skip to content

Instantly share code, notes, and snippets.

@srikat
Created October 19, 2013 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/7054888 to your computer and use it in GitHub Desktop.
Save srikat/7054888 to your computer and use it in GitHub Desktop.
Split footer in Genesis
add_shortcode( 'sitename', 'site_name' );
function site_name() {
return '<a href="' . get_bloginfo( 'url' ) . '" title="' . get_bloginfo( 'sitename' ) . '">' . get_bloginfo( 'name' ) . '</a>';
}
//* Change the footer text
add_filter('genesis_footer_creds_text', 'sp_footer_creds_filter');
function sp_footer_creds_filter( $creds ) {
$creds = '
<div class="alignleft">
[sitename]<br/>
Copyright [footer_copyright] &middot; All Rights Reserved
</div>
<div class="alignright">
<a href="http://mydomain.com">My Custom Link</a> on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a><br/>
Powered by [footer_wordpress_link]
</div>
';
return $creds;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment