Make the whole hero image in Brooklyn theme as CTA button

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.

@Blushu

Welcome to the Shopify community!
Please share your store URL!
I will check out the issue and provide the correct solution to you!

Thanks!

www.blushu.in

@Blushu

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.

@Blushu

This code customization work. Please add me as a collab.

Thanks!

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?

@Blushu

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,