Hi,
the link in the logo is get from home_url() function. The home_url template tag retrieves the home URL for the current site. You can change it via WordPress admin > Settings > General, and find “Site Address (URL)”.
The “Site Address (URL)” setting is the url you want people to type in browser to open your WordPress website. So, I’d suggest to keep it as is unless you want your site home page to be different from your WordPress installation directory.
Cheers
Hi, thanks for using Omega theme.
Not sure why you want to do it, but you can change the logo url via omega_site_title filter. You can use code snippets plugin and add below snippet.
add_filter('omega_site_title','custom_site_title');
function custom_site_title($output) {
$logo_url = "http://yourdomain.com/your_url";
if ( $title = get_bloginfo( 'name' ) ) {
if ( $logo = get_theme_mod( 'custom_logo' ) ) {
$title = sprintf( '<div itemscope itemtype="http://schema.org/Organization" class="site-title"><a itemprop="url" href="%1$s" title="%2$s" rel="home"><img itemprop="logo" alt="%3$s" src="%4$s"/></a></div>', $logo_url, esc_attr( $title ), esc_attr( $title ), $logo );
} else {
if (is_home()) {
$title = sprintf( '<h1 class="site-title" itemprop="headline"><a href="%1$s" title="%2$s" rel="home">%3$s</a></h1>', $logo_url, esc_attr( $title ), $title );
} else {
$title = sprintf( '<h2 class="site-title" itemprop="headline"><a href="%1$s" title="%2$s" rel="home">%3$s</a></h2>', $logo_url, esc_attr( $title ), $title );
}
}
}
echo $title;
}
Thread Starter
Stas_D
(@demidenok)
Thank you very much is what I need!