How can I make each individual image clickable?

NEOMANN
New Member
4 0 0

I've used this code onclick="location.href='YOUR-URL-HERE';" style="cursor: pointer;" but it makes every image go to the same URL. How can I change this so that every image takes the user to a different place? I'm using the sense theme. Please help! 

Replies 6 (6)

Dan-From-Ryviu
Shopify Partner
7566 1461 1459

Hi @NEOMANN 

Could you share the page with section you added customize code?

 

- Helpful? Like or Accept solution! - Buy me a codefee 🙂
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

NEOMANN
New Member
4 0 0

think I did it on base.css

Dan-From-Ryviu
Shopify Partner
7566 1461 1459

You cannot add script in css file. You must add it in your liquid file

- Helpful? Like or Accept solution! - Buy me a codefee 🙂
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

NEOMANN
New Member
4 0 0

I see! Could you please explain how I could do this? Here's a preview of my new store: https://oivnl1ss1pyi7keg-65898741978.shopifypreview.com

laddisahsi
Shopify Partner
358 36 37

Hi @NEOMANN 

Can you please share store URL?

-Shopify website development, Theme & App Development
-Contact me: WhatsApp


-Email Me
-If this solution is worked, then please Like this and Mark this as accepted solution!
NEOMANN
New Member
4 0 0

Hi, the store is already live but i've paused it as i'm customizing a new theme