Skip to content

Instantly share code, notes, and snippets.

@vfontjr
Created January 31, 2019 20:09
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 vfontjr/862bba3e52e634d8d0c8e4f6b5336c1b to your computer and use it in GitHub Desktop.
Save vfontjr/862bba3e52e634d8d0c8e4f6b5336c1b to your computer and use it in GitHub Desktop.
Change URL in Genesis Framework SEO Title
<?php
add_filter( 'genesis_seo_title', 'child_header_title', 10, 3 );
function child_header_title( $title, $inside, $wrap ) {
$inside = sprintf( '<a href="https://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