Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Im using the Dawn theme and i really want to exclude blog posts and pages from the on site search, so they do not clutter the search results. I just cannot figure out what code to use and where to put it in the search liquid.
Can anyone help me?
Solved! Go to the solution
This is an accepted solution.
I ended up hiring shopify experts to do this for me.
Hey @MetteT ,
I had the same problem and the solution that worked for me was commenting out the when 'page' part in the main-search.liquid file. The page information was on line 231-242 for me, and I can see in the default Dawn theme that the article bits are just above it too - so putting your {% comment %} above it should also exclude blog posts from your search results.
This is an accepted solution.
I ended up hiring shopify experts to do this for me.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025