Last active
December 31, 2015 06:19
-
-
Save nutsandbolts/7946867 to your computer and use it in GitHub Desktop.
Change the site logo URL on a Genesis site - XHTML (props to Bill Erickson)
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
//* Change site title URL | |
function be_logo_url( $title, $inside, $wrap ) { | |
$inside = sprintf( '<a href="%s" title="%s">%s</a>', esc_url( 'http://www.example.com' ), esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) ); | |
$title = sprintf( '<%s id="title">%s</%s>', $wrap, $inside, $wrap ); | |
return $title; | |
} | |
add_filter( 'genesis_seo_title', 'be_logo_url', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment