Making the header image clickable

  • johnnypark

    #171

    Hey!

    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:

    Original:

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

    New:

    <div id=”headerimage” onclick=”location.href=’http://www.myURL.com/’;” 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.

    Thanks!

    Admin

    Syahir Hakim

    #11504

    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.

    johnnypark

    #11505

    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?

    Admin

    Syahir Hakim

    #11506

    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.

    johnnypark

    #11507

    Super, thanks!

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

You must be logged in to reply to this topic.