Remove the Header URL

Community Forums Forums General Discussion Remove the Header URL

This topic is: not resolved

Tagged: 

This topic contains 7 replies, has 3 voices, and was last updated by  JazzaJ 5 months, 3 weeks ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #91110

    JazzaJ
    Member
    Post count: 6

    Hi,

    Id like to remove the header URL, that is so that the logo top left isn’t clickable on my entire site (currently goes to homepage).

    I found this to amend it: http://my.studiopress.com/snippets/header/#modify-url , but doesnt remove it.

    Many thanks for your time.

    #94496

    JazzaJ
    Member
    Post count: 6

    Can anybody help?

    Thanks.

    #94503

    essaysnark
    Participant
    Post count: 342

    Without seeing your actual site it’s a little tricky, but you could use that snippet that you linked to (modify header URL) and where it says “http://www.yourdomain.com” then instead just use the # character. It will still be clickable but it won’t take you anywhere.

    #94504

    emasai
    Participant
    Post count: 648

    It is standard practice to have the logo link back to the homepage, so that you don’t waste space in the navigation putting in a homepage link.

    However if you want to make it unclickable, as you did not provide a link I cannot tell you exactly how. At the moment your logo is probably in site-title a or title-area a, the a tag makes it clickable.


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    #94505

    JazzaJ
    Member
    Post count: 6

    Hi,

    Thanks for your response. If I put a # instead of the url in:

    <?php
    //* Do NOT include the opening php tag
     
    //* Modify the header URL
    add_filter('genesis_seo_title', 'sp_seo_title', 10, 3);
    function sp_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;
    }

    The logo gets lost.

    Any ideas?

    Thanks.

    #94506

    JazzaJ
    Member
    Post count: 6

    Hello,

    Its a standard Executive Pro theme.

    Thanks.

    #94515

    emasai
    Participant
    Post count: 648

    Sorry, but I don’t have all the themes set up on test sites. As I said look to put your logo outside of the a link in the css file.


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    #94818

    JazzaJ
    Member
    Post count: 6

    Hello,

    Thanks for your input and if it helps, this has solved the issue.

    .site-title a {
    background: none !important; 
    width: 0px !important;
    }
Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.