Add collection filter on header on every page

Topic summary

A user is attempting to relocate the collection filter sidebar from the collections page to the header section so it appears consistently across all pages of their Shopify store (using the Dawn theme). After copying the relevant Liquid code from snippets/facets.liquid to sections/header.liquid, the filter is not displaying properly. The implementation involves modifying these specific files, but the current approach isn’t working as expected.

Another participant has requested clarification on the desired outcome, asking for a visual example or image to better understand where exactly the filter should appear in the header and how it should function.

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

Hi communities,

I wanted to move the filter sidebar from collections page to the header on the homepage (header maintain the same on all pages), but after moving through the liquid code, the filter is not showing up.

The above is base on the Dawn default theme.

Files involve are on below (copy part of sidebar from facets.liquid to header.liquid):

snippets/facets.liquid

sections/header.liquid

Thanks in advance.

1 Like

What do you mean you want the filter to be on the header? Please explain ideally with an image.