Search Results Template in Bricks

Updated on 25 Jul 2023


This Pro tutorial provides the steps to set up a search template in Bricks with these features:

  1. "Search results for: <searched term>" above the results. Example.
  2. Showing a "No search results matching" message when there are no search results.

Step 1

Let us define a custom function to check if there's at least 1 result for the searched term.

In your child theme's functions.php or a code snippets plugin, add:

This is a BricksLabs Pro tutorial.

For full access login below or create your BricksLabs Pro account

Instant access to all 250+ Bricks code tutorials with BricksLabs Pro