Add a hyperlink to a non-hero banner graphic on home page AND collection pages

Hi guys,

Please help!
I have a home page banner below my hero banner and i want it to be clickable. how???
I added the same banner to my collections template and it appears as a header bannerin all collections, i also want to add a hyperlink/

How??

TIA
mike.

Hi there old friend, it’s MooseDesk - All-in-one Shopify Ticketing System App again

For this matter, you will need to add a Image Banner Section and then go to the Online Store → Edit Code (check out my screenshot)

and then you find the Image Bannerr Liquid, you add this code in the first

in the image-banner.liquid file.

Add this code in the first

tag in the image-banner.liquid file.

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

Check this out and tell me if it works. It it does please let me know by giving me a ‘LIKE’. If your question is answered please mark this as 'SOLUTION’.

OK trying to get my head around it lol

HELLO dear friend, thank you.

To be clear I am not trying to add a hyperlink to the hero main banner on my home page.

I want to add it to the 2nd banner. And also to the main (same graphic) displayed at the header of my collections. correct??

Thanks,

Mikey.

OK i added it, it work (but it also puts a hyperlink on the hero banner, which i didnt really want)

Thank you!

How do I add the same link to my collections head image that I added to my template?

Mikey.

OK it almost works…LOL
It does send people to the page, which is awesome.

But it sends them to the same page for all 4 banners

Ideally, the home page main top banner is always not clickable, or takes you HOME.

the banner below it takes you to the desired page i added using your code.

then on collections, the same page link is working, but on collections i have a 2nd banner for simple shipping and refund details, and that should go to a pilicy page instead of the page linked from the top banner.

make sense?

thanks again sir

Mike.