Shopify themes, liquid, logos, and UX
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 %} {{ '← See Previous' | link_to: collection.previous_product }} {% endif %}</span> <span style="float:right;">{% if collection.next_product %} {{ 'See Next →' | link_to: collection.next_product }} {% endif %}</span> </div>
Solved! Go to the solution
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}}"
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}}"
Thank you so much! Worked like a charm 🙂
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024