How can I make the entire image banner clickable in Dawn 11?

Hello,

in the previous themes I could make the whole Image Banner clickable, not just the button. But with Dawn 11 it doesnt work anymore. Could you help me with that?

Best Regards
Vitamorte

Hi, @vita_morte .

Add this code in the first

tag in the image-banner.liquid file.

onclick="location.href='YOUR-URL-HERE';" style="cursor: pointer;"

Check the reference image below:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

How can I use this code for several banners with different links? In my old dawn theme, I had the link coded so that it was displayed in the shopify customization page (as in the picture). Could you show me how I do this in the Dawn 11 Theme?

vita_morte_0-1696341576518.png

1 Like

Hello,

Did you find any answer for different links ? Maybe to add this in the customizer ?

Thanks !

Just found this and it does work !

https://websensepro.com/blog/how-to-make-the-image-banner-clickable-shopify/