Hi, Im my website, Im using an image as the logo. I set it as the logo background, I want to make it a clickable link to the home page, I do not want to change anything about the image, just make it so its clickable..
Thank you
Bump
Hi,
Background images are not linkable unfortunately, so if you want to use what you have now then you would have to add a link to the whole header. Not sure if want to do that? If not then you might want to try to add the images to widgets in the header instead? http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/
Best regards,
Rikard
yes, a link in the whole header would be fine.
How can I do that.
Can you please let me know how to do that?
Thank you
Hi,
Please add this script in the functions.php file.
// custom script
add_action( 'wp_footer', 'ava_custom_script' );
function ava_custom_script() {
?>
<script type="text/javascript">
(function($) {
$(".av-logo-container").on('click', function() {
window.location.href = 'http://cfc.amityweb.com.au/';
});
})(jQuery);
</script>
<?php
}
And then use the css code.
.av-logo-container {
cursor: pointer;
}
Best regards,
Ismael
works great!
Thank you!