Pages and Blogs Not Appearing on Search Results Page in Horizon Theme

In the Dawn theme, pages and blogs appear on both the search bar suggestions and the search results page. However, in the Horizon theme, they appear only in the search suggestions and not on the search results page. Could you please explain why?

Eg:
see, in search bar suggestions page is visible

But in search page result page not visible

also same for blog page.

Since predictive search is already showing pages/blog posts, Shopify indexing is working correctly.
The issue is most likely in Horizon’s actual search results template where only product object types are being rendered on the /search page.

Check files like:

  • main-search.liquid
  • search-results.liquid
  • search.json

and look for filters such as:

liquid item.object_type == ‘product’

or where: ‘object_type’, ‘product’.

The theme likely needs additional rendering logic for this

Hi, I’m Sajini from Identixweb, a Shopify development company.

This usually happens because the predictive search and the main search results page use different settings/templates.

In Shopify, the search popup can show results from multiple resources like:

  • Products

  • Pages

  • Blog articles

  • Collections

  • Queries

But the full search results page may be configured in the theme to show only selected resource types, often products only.

In Dawn, the search template usually supports pages and articles on the search results page. In Horizon, the predictive search may show pages/blogs, but the main search results template may be designed to display only product results unless the template code includes pages and articles.

You can check this in the theme code:

Online Store > Themes > Edit code

Then look for files like:

  • main-search.liquid

  • search.json

  • predictive-search.liquid

  • search-related snippets/sections

In the search results section, check whether the loop is only rendering products. For example, if the code only handles:

{% if item.object_type == ‘product’ %}

then pages and articles will not appear on the full search results page.

You may need to add conditions for:

page article

So the search page can render those result types too.

Also check the search form URL. Sometimes themes use a hidden input like this:

<input type="hidden" name="type" value="product">

If the search form is restricted to product, the results page will only show products. You can update it to include pages and articles depending on the theme setup.

Hope this helps.

Hi, @kevalt
In the Dawn theme, the search results page displays:

  • Products
  • Pages
  • Blog Articles
    In the Horizon theme, Pages and Blogs are included in the predictive search suggestions,
    but the actual /search results page is usually limited to: Products only
    That is why:
    Pages and blog articles appear in the search dropdown suggestions
    But disappear on the full search results page
    The main reason is that Horizon typically:
    Uses type=product
    Or only renders product items from search.results
    Or is intentionally designed as a product-focused ecommerce search experience
    This is not a Shopify platform limitation.
    It is caused by differences in theme implementation.
  • Dawn is designed more like a “site-wide search”
  • Horizon is designed more like a “product-focused search”

Hi @kevalt,
Go to online store > edit code > go to blocks folder > search-input.liquid
change value ="product to this line
value="product,page,article"

Next step:

Go to section folder
search-results.liquid
replace this line {% assign products = search.results | where: 'object_type', 'product' %}. to this
{% assign products = search.results %}

Save