Hub/Theme/Filtered Collection Grid Section
Task IntentTheme

Filtered Collection Grid Section

Build a collection grid with client-side tag-based filtering and animated transitions.

What This Sidekick Query Does

Build a collection grid with client-side tag-based filtering and animated transitions.

Prompts

Copy, adapt, and run this directly in Shopify Sidekick.

Create a filtered collection grid section that displays products from [COLLECTION_NAME] with tag-based filter buttons above the grid. Extract unique tags from the collection products and display them as clickable filter pills (e.g., All, [TAG_1], [TAG_2], [TAG_3]). When a filter is clicked, show only products matching that tag with a smooth fade/slide animation. The All button resets to show everything. The product grid should show [COLUMNS] columns on desktop with each card including: image, title, price, and Quick Add button. Implement filtering client-side using JavaScript data attributes – no page reload. Add an active state style to the selected filter pill using [ACCENT_COLOR]. Include a product count indicator (e.g., Showing 8 of 24 products). Generate complete Liquid, JavaScript, and CSS.

Expected Output

Build a collection grid with client-side tag-based filtering and animated transitions.

Tips to Improve Results

Copy the prompt above
Open Shopify Sidekick in your Shopify admin
Paste the prompt and replace the bracketed placeholders with your details
Review Sidekick's response and apply the suggestions