Clickable header image

  • Janal

    #5795

    I would like to have, as many people, a clickable header image. My website is http://www.zujewicz.pl and header.php looks like this:

    I read a lot of stuff at different forums and the only suitable thing was pasting

    <div id="headerimage" onclick="location.href='http://www.zujewicz.pl/';" style="cursor: pointer;">

    just before

    <div id="header">

    but this worked partially. The header image became clickable, but so did the rest of the page. Can you help me in any way. Thanks a lot in advance.

    ronangelo

    #32688

    There’s an option for that.

    Graphene Options -> Display -> Header Display Options -> Link header image to front page

    Anonymous

    #32689

    Don’t dump the code here. I’ve removed it from your post.

    Follow Ron’s suggestion.

    Janal

    #32690

    Thank you very much for the answers (and sorry for pasting whole code), but it still does not work…

    http://www.zujewicz.pl – I removed this <div id="headerimage" onclick="location.href='http://www.zujewicz.pl/';" style="cursor: pointer;"> and ticked “Link header image to front page” option and nothing happened…

    Anonymous

    #32691

    You are probably testing it on homepage only. Go to some other page and move cursor over header image.

    There is no reason to link header image to homepage on homepage itself!

    Anonymous

    #32692

    And, don’t edit parent theme files. That may cause lots of problems.

    Janal

    #32693

    heh, factually it works 🙂

    Thank you for all the advices!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Do NOT follow this link or you will be banned from the site!