Forums

Made header clickable and now whole page clickable (3 posts)

  1. lashbrooke
    Member
    Posted 11 months ago #

    Hi,

    I would really appreciate some help with this one. I have added this code into my header.php template to make my header clickable back to my homepage...

    <div id="art-main" onclick="location.href='http://www.bondibeachplaygroups.org.au/';" style="cursor: pointer;">

    The problem I am having is now the whole page is clicking back to my homepage. Any suggestions?

    Cheers

  2. Dion Hulse (@dd32)
    WordPress Dev
    Posted 11 months ago #

    nice, a non-WordPress site ;)

    You'll need to make sure you're closing the div properly after the header..

    however, you'd be far better off wraping the <img> in an <a> as such:
    <a href="http://www.bondibeachplaygroups.org.au/"><img ...src="...play..."></a>

  3. lashbrooke
    Member
    Posted 11 months ago #

    My site is still in dev, the link however in this code is going to the current live version : )

    Thanks for your response, however, would you mind expanding out the entire link I need to put in, I am not a strong developer so I am not entirely following what code you are suggesting I need to enter in.

    Cheers
    S

Reply

You must log in to post.

About this Topic