Making the header image clickable

  • johnnypark



    Thanks for a great theme, I’ve used it a good few times and keep coming back to it because of its simplicity. I have a question regarding the header image and making it clickable. I want it to link to my landing page which is a custom page called home with the sliding posts on it. I’ve amended the following code in the header.php file:


    <div id=”header” style=”background-image:url(<?php echo $header_img; ?>);”>


    <div id=”headerimage” onclick=”location.href=’;;” style=”cursor: pointer;”>

    It seems to work ok, the page loads the way it should when clicked. The only problem is the cursor – the ‘hand’ cursor doesn’t seem to work. I only get the normal ‘black arrow’ cursor when I click or hover above the header. I’d be grateful for any help you could provide.



    Syahir Hakim


    If all you want to do is link the header image back to the front page, the latest version (1.1) that’s just been released has an option that’ll allow you to do just that.



    That works great, thanks! One more thing, is there a way to get rid of the ‘edit post’ text that ends up in the top right corner on every page? Is it because I’m logged in as an admin or will that show on all browsers?


    Syahir Hakim


    The “Edit post” link will only appear if you are logged in as an admin, so that you you can directly go to the Edit post screen for that particular post with just one click.



    Super, thanks!

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

  • You must be logged in to reply to this topic.