Last active
July 6, 2017 14:57
-
-
Save braddalton/fdb9fbd70946d60addce61071a7c8032 to your computer and use it in GitHub Desktop.
Modify Genesis Site Header Logo Site Title Link Conditionally ( Works on Pages Only Unless You Modify/Add Correct Conditional Tag https://wpsites.net/web-design/modify-genesis-site-title/
This file contains 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_filter( 'genesis_seo_title', 'child_header_title', 10, 3 ); | |
function child_header_title( $title, $inside, $wrap ) { | |
if ( is_page(array( '1', '4276' ) ) ) | |
$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