Menu Close

Get Support From ShopWired Close

All Systems Are Operational

Subscribe To Updates
Prefer To Live Chat? Chat directly with ShopWired support Available 9.00am to 7.00pm Monday to Friday
11.00am to 5.00pm Saturday
Quickest response time

Send A Message
Response within 24 hours

Menu Close

Menu

Blog search

To include a search form on the blog page of your theme, you just need to create an HTML form with its action attribute set to /blog. This will search blog posts matching via keyword.

Within this form you should have an input of type text with a name attribute set to to keywords.

An example is shown below.

<form action="/blog" method="get">
    <input type="text" name="keywords">
    <button type="submit">search</button>
</form>

Once the search form has been submitted the user will be taken to the blog view with the matching results.

The keywords that a user has searched with can be outputted using the {{ keywords }} variable.