Shopify Dawn – Add Search Bar as a Theme Section

March 26th, 2024

Shopify Search Section in Dawn.

Shopify Search Section in Dawn.

For some reason, there is no section to add a search bar to the Dawn theme so I repurposed the main-search.liquid file to serve as one.

This section supports disabling the “search” title as well.

The section is just a simple search bar centered in a section with configurable padding.

Add this file to your sections folder in your Dawn-based theme and then search for a section called “Search Results” in the theme editor.

This section does not have the ‘Liquid error (sections/main-search line 66): Array ‘search.results’ is not paginatable.‘ error.

The section can be found embedded below or on GitHub:


Leave a Reply

Your email address will not be published. Required fields are marked *