Making the header image clickable
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=’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.
You must be logged in to reply to this topic.