follow mejoin mesubscribe
Scribe. SEO Made Simple.

Change the Genesis Header Home Link

While I generally wouldn’t recommend linking to an external site from your header, on occasion, you may need to change the URL of the header home link. For example, if you have set up your WordPress install in a subdirectory as a secondary area of an already existing site, you may want the header URL to direct users back to your site’s main homepage. Changing it is simple.
[placement]

add_filter( 'genesis_seo_title', 'child_header_title', 10, 3 );
/**
 * Change default Header URL.
 *
 * @author Jen Baumann
 * @link http://dev.studiopress.com/change-header-link.htm
 *
 * @param string $title complete title including $wrap and $inside
 * @param string $inside contents of the $title with link and site name
 * @param string $wrap outer $title tags, may be h1 or h4
 * @return string
 */
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 id="title">%2$s</%1$s>', $wrap, $inside );
}

Remember to update the example.com value to your own.

View My Portfolio at StudioPress.

About Jennifer Baumann

I am an avid horseback rider, animal lover, and freelance designer. I love WordPress, and I am a recommended StudioPress theme developer.

Dream Whisper Designs is Powered by Genesis

StudioPress Premium WordPress Themes

Genesis empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. It's that simple - start using Genesis now!

Take advantage of the 6 default layout options, comprehensive SEO settings, rock-solid security, flexible theme options, cool custom widgets, custom design hooks, and a huge selection of child themes ("skins") that make your site look the way you want it to. With automatic theme updates and world-class support included, Genesis is the smart choice for your WordPress website or blog.