Shopify Blog Search: How to Add Search to Your Blog
Shopify blog search, explained: why store search mixes in products, a free articles-only search box, and true blog search.
Shopify blog search doesn't exist as a built-in feature. Shopify's search covers the whole store, so readers who search your blog also get products and pages. You can limit search to articles by adding type=article to the search URL, but that still searches every blog at once. Searching inside one blog needs an app.
That's the short version. The rest of this guide covers what Shopify's search actually does, a free way to give your blog an articles-only search box, and what a real blog search adds once your blog is big enough to need one.
How Shopify search treats blog posts
Every Shopify store has a search page at /search. Type a query and Shopify searches your products, pages and blog articles together, then shows them in one results list. Most themes put products first.
For a store that sells, that's the right default. For a reader on your blog page looking for "sourdough starter", it's not: the first results might be flour and jars, and the article they wanted is further down.
There are three limits worth knowing:
- Search is store-wide. There's no URL that searches inside one blog. Shopify gives every tag a page at
/blogs/<blog>/tagged/<tag>, but there's nothing similar for a search term. - Articles from every blog are mixed together. If you run a "News" blog and a "Recipes" blog, a search covers both.
- Your theme decides the look. Results use your theme's search template, which is usually designed around product cards.
If tags are what your readers really need, start with filtering your blog by tag. Tag filters cover browsing by topic, and search covers looking for something specific. Most growing blogs end up wanting both.
Method 1: An articles-only search box (free, no app)
Shopify's search page accepts a type parameter. /search?q=sourdough&type=article returns only articles, with no products or pages. You can put a search form on your blog page that always sends that parameter.
On Dawn and most Online Store 2.0 themes, you don't need to edit theme files:
- Go to Online Store → Themes → Customize and open Blogs → Default blog.
- Click Add section, choose Custom Liquid, and drag it above the blog posts.
- Paste this and save:
<form action="{{ routes.search_url }}" method="get" role="search" class="blog-search page-width">
<input type="hidden" name="type" value="article">
<label for="BlogSearch" class="visually-hidden">Search articles</label>
<input id="BlogSearch" type="search" name="q" placeholder="Search articles" value="{{ search.terms | escape }}">
<button type="submit">Search</button>
</form>
<style>
.blog-search { display: flex; gap: .5rem; margin-block: 1.5rem; }
.blog-search input[type="search"] { flex: 1; padding: .8rem 1.2rem; font: inherit; }
.blog-search button { padding: .8rem 1.6rem; font: inherit; cursor: pointer; }
</style>
The hidden type input is what keeps products out. routes.search_url keeps the form working if your store uses a language or market prefix in its URLs.
Where this stops
This is a real improvement, and it costs nothing. It still has limits:
- It searches every blog, not just the one the reader is on.
- It leaves the blog. Readers land on your theme's search page, styled for products, instead of staying in the blog layout.
- You learn nothing. You don't see what readers searched for, or which searches found nothing.
Method 2: Your theme's predictive search
Many themes, Dawn and Horizon included, have a search icon in the header that shows results as you type. Shopify's predictive search can include articles, and some themes let you choose which result types appear in the theme editor.
It's worth checking your theme's search settings. But predictive search lives in the header, covers the whole store and usually shows only a handful of results. It's a shortcut to a product, not a way to browse a blog.
Method 3: A real blog search with an app
A blog search tool searches only the articles in the blog the reader is on, and shows results right in the blog page. This is what I built into Filter My Blog:
- The search box sits beside your tag filter, styled the same way, on the blog page itself.
- It searches one blog. A reader on your Recipes blog searches recipes, not your News posts or your products.
- Results are your theme's own article cards. The app swaps the matching articles into your theme's existing grid, so a search result looks exactly like the rest of your blog.
- It matches titles, tags and a short excerpt, ranking a title match above a tag match, and a tag match above an excerpt match.
There are two levels:
- Plus: search on submit. Results appear when the reader presses Enter.
- Pro: search as you type. Results narrow with every keystroke, with a short pause so it doesn't fire on every letter.
One honest limit: showing results inside the blog page needs a theme whose blog section accepts app blocks, like Horizon. On Dawn, the search box falls back to Shopify's normal store search, much like Method 1. Theme compatibility explains why. Every other feature works the same on both.
The full details are in the blog search docs, and the pricing page compares the plans.
Learn from what readers search for
Search terms are some of the best content research you can get. A reader typed exactly what they wanted, in their own words.
The most useful list is searches that found nothing. A term that comes up again and again with no results means one of two things:
- There's an article you haven't written yet. That's a topic readers are already asking for.
- An existing article uses different words. Readers search "gluten free bread" and your post is titled "Bread without wheat". Change the title or add a tag, and they'll find it.
Filter My Blog's search analytics on Pro show the top twenty search terms and the searches that came back empty. Terms are stored as daily counts per term, with nothing that identifies who searched.
Which option should you use?
| Articles-only search box | Theme predictive search | Blog search app | |
|---|---|---|---|
| Cost | Free | Free | Paid (Plus or Pro) |
| Code needed | Copy and paste | None | None |
| Searches only articles | Yes | Depends on theme | Yes |
| Searches only one blog | No | No | Yes |
| Results stay in the blog layout | No | No | Yes, on Horizon-style themes |
| Search as you type | No | Yes | Yes (Pro) |
| See what readers search for | No | Store-wide only | Yes (Pro) |
As a rule of thumb: if your blog has a few dozen posts, the free articles-only search box is plenty. Once readers rely on the blog, with recipes, guides or tutorials they come back to, a blog search that stays in the blog and tells you what's missing is worth having.
Make your posts easier to find, whatever you use
Any search is only as good as what it searches. A few habits help with every option above:
- Put the main words in the title. Every search tool weighs titles heavily. "Sourdough starter guide" beats "Our new favourite thing".
- Tag consistently. Pick one form, "Vegan" or "Plant based", and stick to it. Tags feed search and tag filters both.
- Write a clear excerpt. Shopify's article excerpt is often what appears in results, and some search tools match it too.
Frequently asked questions
Does Shopify have a blog search?
Not on its own. Shopify's search covers the whole store, so a search returns products, pages and articles together. You can limit it to articles with type=article, but it still searches every blog in the store, not just one.
How do I search only blog posts on Shopify?
Add type=article to the search URL, like /search?q=sourdough&type=article. A search form with a hidden input named type and the value article does the same thing, so you can put an articles-only search box on your blog page with no app.
Can I search inside one Shopify blog?
Not with a URL. Shopify has /blogs/<blog>/tagged/<tag> for tags, but nothing that filters a blog by search term. Searching one blog needs JavaScript that looks through that blog's articles, which is what blog search apps do.
Does Shopify blog search look at the full article text?
Shopify's store search does match article content. Filter My Blog's blog search matches each article's title, tags and a short excerpt, ranking title matches first, so short, specific titles and good tags matter.
Can I see what readers search for on my Shopify blog?
Shopify's built-in analytics report store-wide searches. To see searches made inside the blog, including the ones that found nothing, you need a blog search tool that records them, such as Filter My Blog's search analytics on the Pro plan.