Create Tags Filter in Shopify Store – No App Post author:administrator Post published:November 6, 2023 Post category:Shopify 1. Create new snippet 'onsale-filter' and paste below code: <style> .custom-sales-toggle { margin-bottom: 20px; } .custom-sales-toggle a { font-size: 12px; } .custom-sales-toggle a.turn-on { background: aqua; padding: 5px; border-radius: 5px; } .custom-sales-toggle a.turn-off { background: black; color: white; padding: 5px; border-radius: 5px; } </style> {% assign filtertag = 'onsale' %} <div class="custom-sales-toggle"> <a class="turn-on" href="{{ saleurl }}/{{ filtertag }}?sort_by={{ filtertag }}">On Sale</a> <a class="turn-off" href="{{ saleurl }}">Off Sale</a> </div> {% render 'onsale-filter', saleurl: results_url %} You Might Also Like How to Add Shopify DAWN Theme Testimonials Slider August 24, 2023 How To Add Before And After Slider Section in Shopify? September 7, 2024 Shopify PayPal Credit Debit Card Buttons | Booster Theme | Smart Buttons Updated Code July 6, 2021