Created
October 19, 2013 11:41
-
-
Save srikat/7054888 to your computer and use it in GitHub Desktop.
Split footer in Genesis
This file contains hidden or 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( '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] · 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