Skip to content

Instantly share code, notes, and snippets.

@nutsandbolts
Last active December 31, 2015 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nutsandbolts/7946867 to your computer and use it in GitHub Desktop.
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)
//* 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