Working on a web design in Hermann MO for a great couple that manage two different bed and breakfasts in the same city. They wanted to have a way to showcase both inns on the same site. Through toils and tears I figured most of it out but I needed a way to change the home header link using the Genesis Framework. Changing the home header link would allow me to revise the link to go to a specific page instead of back to the home page. Luckily, I found this resource to help me out. Thanks Jennifer.
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://hermannmolodging.com/cat-nap-inn/" title="%s">%s</a>', esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) ); return sprintf( '<%1$s id="title">%2$s</%1$s>', $wrap, $inside ); }
This code that changes the home header link for the Genesis Framework worked like a charm!
Leave a Reply