Check for product tag on filtered page, if found do x

Highlighted
Tourist
4 0 1

Good morning,

I am filtering products via the url based upon the product tags (e.g. the product tag  = Mix Scale C Major on https://woodstockchimes.myshopify.com/collections/all-products/mix-scale-c-major).

 

"Mix Scale C Major" is not a Collection but rather a Product Tag.

 

What I am trying to do is: if products on page have tag containing "Mix" replace <h1 class="title" data-default-text="{{ title }}">{{ title }}</h1> with <h1>If only I could figure this out!</h1><p>Then I could move on...</p>.

 

I know how to do the replace piece but I can't figure out how to check for "product tag contains" on the collections page.

 

Note: I'd prefer not creating an actual collection for every group if possible. 

0 Likes