Adding previous and next button to products in each collection

Ali-Rahimi
Visitor
1 0 1

I need to add a previous and next button to my products in each collection for users to navigate between products like a slideshow. How should I add the code and where?

Replies 2 (2)

laddisahsi
Shopify Partner
383 38 40

Hi @Ali-Rahimi 
have to add the code in theme.liquid or main-product.liquid

You can get the products URL using the collections and can set the links to next and previous buttons.

 

If this solution is worked, then please Like this and Mark this as accepted solution!


Laddi Thanks

-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!
Ryan777
Visitor
1 0 1

do you have to do this for each product or for one collection at a time