remove home page link from logo in header?

Community Forums Forums Design Tips and Tricks remove home page link from logo in header?

This topic is: not resolved

Tagged: , ,

This topic contains 6 replies, has 2 voices, and was last updated by  braddalton 3 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #102445

    irishfan
    Member
    Post count: 6

    Hey guys,

    I want to remove the clickable link on my logo in the header so that my logo is not a link back to the home page. I would really prefer to be able to select only certain pages/posts that have this feature but doubt that is possible.

    Any ideas on how to do this? I am using the magazine pro theme.

    Thanks!

    #102477

    braddalton
    Participant
    Post count: 8883

    Try http://my.studiopress.com/snippets/


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #102519

    irishfan
    Member
    Post count: 6

    Thanks! Would that be the child or parent theme? I checked both and cant find that code in the functions.php file…

    #102522

    braddalton
    Participant
    Post count: 8883

    Its in WordPress and/or Genesis so you need to filter the function which adds the link conditionally.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #102619

    irishfan
    Member
    Post count: 6

    Thanks Brad! Ok so I figured out I need to add that code which I did to the functions.php file in the magazine pro theme. However the code allowed me to modify the url but it also removed my logo image. So I fixed one problem to get another lol

    Here is the code i added:

    //* Modify the header URL
    add_filter(‘genesis_seo_title’, ‘sp_seo_title’, 10, 3);
    function sp_seo_title($title, $inside, $wrap) {
    $inside = sprintf( ‘%s‘, esc_attr( get_bloginfo(‘name’) ), get_bloginfo(‘name’) );
    $title = sprintf(‘<%s id=”title”>%s</%s>’, $wrap, $inside, $wrap);
    return $title;

    Its pulling the ‘name’ of blog instead of logo…

    Is there a way to keep my logo image and still change the url?

    Thanks!

    • This reply was modified 3 months ago by  irishfan.
    • This reply was modified 3 months ago by  irishfan.
    #102839

    irishfan
    Member
    Post count: 6

    Anyway to keep my logo image and still remove the url link?

    Thanks!

    #102954

    braddalton
    Participant
    Post count: 8883

    Can’t test that code unless its embedded in a Github Gist as its broken now.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.