Hi, I want to make the whole Hero image in my store, which runs in Brooklyn theme, as CTA button. In other words when user clicks anywhere on the hero image a page configured should open.
Welcome to the Shopify community!
Please share your store URL!
I will check out the issue and provide the correct solution to you!
Thanks!
Please share a screenshot of what you want, because I don’t understand your thinking.
Thanks!
Instead of having a CTA button, I want user to be taken to a particular
page when clicking anywhere on the hero image.
Anyone know any shopify theme which lets the whole Hero image act as CTA button, clicking anywhere on the image should take user to a particular page on the website?
This solution requires some changes in liquid and css file but, here is simple jQuery tweak you can use.
Go to the Online store > Theme > Edit code > theme.js file and add following code at the end of file:
$(".hero-slideshow .hero__slide").click(function(){
var slideURL = $(this).find(".hero__cta").attr("href");
window.location.href = slideURL;
});
Cheers,