A Shopify store owner needed to apply different product templates for two categories: Clothing and Jewellery. Specifically, they wanted to display a size chart only for clothing items while hiding or removing it from jewellery products.
Solutions Provided:
Create separate product templates for each category and assign them accordingly through Shopify’s theme structure
Use conditional Liquid code logic based on product type or tags to control when the size chart appears
Add custom code to the theme.liquid file that checks if a product belongs to the ‘jewellery_all’ collection and conditionally displays content
Resolution:
The issue was resolved using the conditional code approach. The solution involved adding Liquid template code above the </body> tag in theme.liquid that checks product collections and displays the size chart only for non-jewellery items. The original poster confirmed the solution worked successfully.
Multiple community members provided documentation links and video tutorials for creating and applying templates in Shopify, along with code snippets for implementation.
Summarized with AI on November 5.
AI used: claude-sonnet-4-5-20250929.
Hi @hritikakhattar
I understand you want to hide or delete the size chart for jewelry items. You can achieve this by modifying the conditional logic in your Liquid template to ensure that the size chart only appears for clothing items. Here’s how you can do it Add Conditional Logic Based on Product Type or Tag : Modify the Liquid code to display the size chart only for clothing items. Here’s an example of how you can do this using a product tag:
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.