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 🙂
User | RANK |
---|---|
154 | |
136 | |
77 | |
70 | |
68 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023