Tagged: background, header, hyperlink
Hi,
I removed the logo from the header and added a background graphic. Is there any way to hyperlink the background graphic.
Hey Snerp!
Thank you for using our theme.
It is possible to add a click event to the complete header section with the logo, if you have the menus below as on your screenshot.
Put the following in functions.php and replace the URL:
add_action('wp_footer', 'my_header_link');
function my_header_link()
{
?>
<script>
jQuery(function() {
jQuery('#header_main').on('click', function(){
window.location.href = "http://www.google.com";
});
});
</script>
<?php
}
Regards,
Günter
Thanks that worked. Is there a way to have the finger/hand appear when somebody scrolls over the banner so they know it’s a link?
Hi!
In custom.css or Enfold->General Styling->Quick CSS field put the following:
#header_main:hover{
cursor: pointer;
}
Regards,
Günter
Awesome, thanks!