Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Adding Previous and Next Buttons to Debut Theme

Solved

Adding Previous and Next Buttons to Debut Theme

Chillmamas
Visitor
3 0 0

Hello! I am wanting to add Previous and Next buttons to my product pages. I found a discussion from 2019 and entered the code below where it said to but it did nothing that I can see.

 

My page is www.ChillMamasBoutique.com Thanks!

 

<div class="product-nav clearfix">
    <span style="float:left;">{% if collection.previous_product %}
       {{ '&larr; See Previous' | link_to: collection.previous_product }}
       {% endif %}</span>
	   <span style="float:right;">{% if collection.next_product %}
       {{ 'See Next &rarr;' | link_to: collection.next_product }}
         {% endif %}</span>
     </div>  

  

Accepted Solution (1)

ChoosiZon
Shopify Partner
416 66 111

This is an accepted solution.

For current debut you have to add something.

Open your product-card-grid.liquid under snippets.

At around line 12 find this href="{{ product.url }}" 

Add this: | within: collection

It should look like this after added:  href="{{ product.url | within: collection}}"

 

 

Donate
For faster response with a fee pls email to : choositech@outlook.com

View solution in original post

Replies 2 (2)

ChoosiZon
Shopify Partner
416 66 111

This is an accepted solution.

For current debut you have to add something.

Open your product-card-grid.liquid under snippets.

At around line 12 find this href="{{ product.url }}" 

Add this: | within: collection

It should look like this after added:  href="{{ product.url | within: collection}}"

 

 

Donate
For faster response with a fee pls email to : choositech@outlook.com
Chillmamas
Visitor
3 0 0

Thank you so much! Worked like a charm 🙂