Liquid to filter a featured collection by a tag, Dawn Theme

I have a featured collection on the home page.

I want to filter the collection by a tag when the customer interacts with one of my custom html buttons.

Can’t work out how to filter the collection in liquid.

Can someone point me in the right direction?

Attached screenshot of what I am trying to achieve (I have prototyped in html/liquid). All the country filters are horizontal. When customer hits a flag, I want to filter the collection by product tag accordingly.

I wouldn’t personally do it like this, but I have to copy a non-Shopify site. Any help much appreciated.

Hi @LanceAllison ,

I checked and this is not possible, Shopify 2.0 filter doesn’t support it. You can refer to the following: https://help.shopify.com/en/manual/online-store/themes/customizing-themes/storefront-filters#custom-filters

If you want to use it, you can just install the app: https://apps.shopify.com/product-filter-search or https://apps.shopify.com/product-filter-and-search

Hope it helps!

Thanks for the reply. The filtering does not need to be by tag, I could use product type or vendor. Given that there are many Apps which apply their own filters to collections, I am assuming there must be some Liquid to apply a filter to a collection reasonably easily?