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 🙂
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024