Skip to content

Instantly share code, notes, and snippets.

@eugenoprea
Created February 3, 2013 02:00
Show Gist options
  • Save eugenoprea/4700248 to your computer and use it in GitHub Desktop.
Save eugenoprea/4700248 to your computer and use it in GitHub Desktop.
Genesis - How to Change Header Link/URL
/** Modify the header URL */
add_filter('genesis_seo_title', 'eo_set_header_url');
function eo_set_header_url($title, $inside, $wrap)
{
$blog_name = get_bloginfo('name');
$header_url = user_trailingslashit('http://www.eugenoprea.com');
$inside = sprintf('<a title="%s" href="%s">%s</a>', $header_url, esc_attr($blog_name), $blog_name);
$title = sprintf('<%1$s id="title">%2$s</%1$s>', $wrap, $inside);
return $title;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment