Clickable header image

  • Janal


    I would like to have, as many people, a clickable header image. My website is 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='';" 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.



    There’s an option for that.

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



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

    Follow Ron’s suggestion.



    Thank you very much for the answers (and sorry for pasting whole code), but it still does not work… – I removed this <div id="headerimage" onclick="location.href='';" style="cursor: pointer;"> and ticked “Link header image to front page” option and nothing happened…



    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!



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



    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.