Shared Shopify theme sections are great for DRY templates, but they introduce subtle structured-data bugs when a store sells both menswear and womenswear. If a single product FAQ snippet outputs a hardcoded FAQPage JSON-LD block, women's garment attributes—such as dupatta length, lehenga lining, or bridal tailoring notes—can silently leak into menswear product schema. Search engines then index irrelevant FAQ entities against men's SKUs, diluting semantic relevance.

Why Shared Snippets Leak Schema

In Dawn-based or custom Online Store 2.0 themes, product templates often include a global product-faq.liquid section. Without category guards, every product renders the same default Q&A array inside <script type="application/ld+json">.

Isolating Gender & Category Context in Liquid

To prevent cross-catalog contamination, evaluate both product.collections and a normalized product.title | downcase check before emitting FAQ questions or JSON-LD entries:

{% assign title_lc = product.title | downcase %} {% assign is_mens = false %} {% for col in product.collections %} {% assign col_handle = col.handle | downcase %} {% if col_handle == 'men' or col_handle contains 'mens' %} {% assign is_mens = true %} {% endif %} {% endfor %} {% if title_lc contains 'kurta' or title_lc contains 'waistcoat' %} {% unless title_lc contains 'women' or title_lc contains 'ladies' %} {% assign is_mens = true %} {% endunless %} {% endif %} 

Once is_mens is resolved, route the JSON-LD loop to menswear-specific sizing, fabric GSM, and collar/cuff care FAQs while keeping womenswear embroidery and dupatta guidance strictly isolated.

We applied this exact guard pattern across ShaamG UK Menswear—ensuring tailored items like our Black Shalwar Kameez emit clean, garment-accurate FAQPage schema with zero womenswear leakage.