Community Forums › Forums › Archived Forums › General Discussion › Remove URL from Header Logo in Magazine Pro Theme
Tagged: header, Magazine Pro
- This topic has 4 replies, 3 voices, and was last updated 10 years, 8 months ago by
Gregg Davis.
-
AuthorPosts
-
August 26, 2015 at 11:52 am #163593
healthegy
MemberHow do i remove the Link from my header logo? I don't want the logo to link back to the home page. Any Help is appreciated!
August 26, 2015 at 4:04 pm #163636Victor Font
ModeratorAdd this to your functions.php file. It should do the trick. Change the name of images/logo.png to the point to your logo image.
remove_action( 'genesis_site_description', 'genesis_seo_site_title' ); add_action( 'genesis_site_description', 'vmf_seo_site_title_logo' ); /** * Filter genesis_seo_title to use an image for the logo instead of a background image * * The genesis_seo_site_title function is located in genesis/lib/structure/header.php * @link http://victorfont.com/genesis-site-title-logo * */ function vmf_seo_site_title_logo() { //* Set what goes inside the wrapping tags $inside = sprintf( '<img src="'. get_stylesheet_directory_uri() .'/images/logo.png" title="%s" alt="%s"/>', get_bloginfo( 'name' ), get_bloginfo( 'name' ) ); //* Determine which wrapping tags to use $wrap = is_home() && 'title' === genesis_get_seo_option( 'home_h1_on' ) ? 'h1' : 'p'; //* A little fallback, in case an SEO plugin is active $wrap = is_home() && ! genesis_get_seo_option( 'home_h1_on' ) ? 'h1' : $wrap; //* And finally, $wrap in h1 if HTML5 & semantic headings enabled $wrap = genesis_html5() && genesis_get_seo_option( 'semantic_headings' ) ? 'h1' : $wrap; //* Build the title $title = genesis_html5() ? sprintf( "<{$wrap} %s>", genesis_attr( 'site-title' ) ) : sprintf( '<%s id="title">%s</%s>', $wrap, $inside, $wrap ); $title .= genesis_html5() ? "{$inside}</{$wrap}>" : ''; //* Echo (filtered) echo apply_filters( 'genesis_seo_title', $title, $inside, $wrap ); }
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?August 27, 2015 at 9:24 am #163738healthegy
MemberVictor, i Appreciate you taking the time to reply. This solution doesn't work for me. in my site I'm presently using the "unique Headers Plugin" to change the header on different part of my site on a per page/ post basis. so the solution you provided didn't work for me. I need ta function to remove tag that's associated with the header logo.
September 16, 2015 at 10:42 am #165782healthegy
MemberFor anyone who needs this, simply add this to the css:
.header-image .site-title a { pointer-events: none; cursor: default; }October 3, 2015 at 5:09 pm #167320Gregg Davis
ParticipantThank you @healthegy! I used it without the .header-image for my site which was just using the text title. Works beautifully.
/* Unlink Site Title */ .site-title a { pointer-events: none; cursor: default; }
Gregg Davis
http://greggdavis.com -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.