Created
February 3, 2013 02:00
-
-
Save eugenoprea/4700248 to your computer and use it in GitHub Desktop.
Genesis - How to Change Header Link/URL
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
/** 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