Skip to content

Instantly share code, notes, and snippets.

@marisqaporter
Created February 16, 2015 22:46
Show Gist options
  • Save marisqaporter/12a5c4db0c48c5517bc0 to your computer and use it in GitHub Desktop.
Save marisqaporter/12a5c4db0c48c5517bc0 to your computer and use it in GitHub Desktop.
point logo to alt url
add_filter( 'genesis_seo_title', 'child_header_title', 10, 3 );
/**
* Change default Header URL.
*
* @author Jen Baumann
* @link http://dreamwhisperdesigns.com/genesis-tutorials/change-genesis-header-home-link/
*/
function child_header_title( $title, $inside, $wrap ) {
$inside = sprintf( '<a href="http://example.com/" title="%s">%s</a>', esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) );
return sprintf( '<%1$s class="site-title">%2$s</%1$s>', $wrap, $inside );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment