public
Last active

Customize the header URL of your site using the Genesis Framework.

  • Download Gist
functions.php
PHP
1 2 3 4 5 6 7 8 9 10
<?php
//* Do NOT include the opening php tag
 
//* Customize the header URL
add_filter('genesis_seo_title', 'bg_seo_title', 10, 3);
function bg_seo_title($title, $inside, $wrap) {
$inside = sprintf( '<a href="http://www.yourdomain.com" title="%s">%s</a>', esc_attr( get_bloginfo('name') ), get_bloginfo('name') );
$title = sprintf( '<%s id="title">%s</%s>', $wrap, $inside, $wrap);
return $title;
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.