Adding Previous and Next Buttons to Debut Theme

Solved
Chillmamas
New Member
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)

Accepted Solutions
ChoosiZon
Navigator
372 61 95

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}}"

 

 

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

View solution in original post

Replies 2 (2)
ChoosiZon
Navigator
372 61 95

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}}"

 

 

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

View solution in original post

Chillmamas
New Member
3 0 0

Thank you so much! Worked like a charm