Result Divi Thumb

Customize your website's search results page with Divi

Updated on 19/01/21

1728 words

6 minutes of reading
33 comments

This article contains affiliate links recognizable by the percentage icon (%) → I am an affiliate link

It's so simple to Customize the search results page of your Divi site Hey! Indeed, this tutorial will only take you 5 minutes but will allow you to propose a more "pro" site.

If you don't know what it is search results page, it's very simple : it's about the results presented when an Internet user uses "Lock" icon to search your site. The displayed page then presents the research results for request given. It is therefore a matter of dynamic page whose results will vary depending on the user.

To do a test on this blog Tips Divi, don't hesitate to enter a keyword using the magnifying glass on the main menu (top right)... You will then see that my search page is customized and does not look like the basic page proposed by the theme Divi, as you can see in the following image:

Search results page Divi - basic
Search results page Basic divi vs. custom

In the above picture, you can see that Basic search results page (top) is much less pretty and much less optimized than the custom search results page (bottom).

In this tutorial, I explain how to do it but I also give you 2 other tips... You won't regret being there!

1 – Why customize the search results page of your site?

If you look at the picture below, you can see that a little over 1% of the visitors to Divi Tips blog do a search via the magnifier icon...

Site Search Google Analytics
On-site search statistics with Google Analytics

During the last 30 days, 348 people have been searching my blog to find answers to their questions...

1% of visits, it's very few but if I hadn't customized this page of search results, 348 people would have visited a non-optimized page and not branded. This does not reflect the image I would like my blog reference.

This is a good reason to customize this search results page: it will match your brand image and will not show other pages....

Also read: How to add a real-time Ajax search to your Divi site

2 - Composition of the layout of the search results page

If you look at my search results pageIt consists of 5 elements:

Composition of a search results page Divi
Composition of a search results page Divi
  • A – The dynamic title of the page
  • B – The results of Internet search in the form of thumbnails
  • C – A new section with a title
  • D – A possibility to repeat the search if the first one was unsuccessful
  • E – Other items or calls to action, that is content you would like to highlight on this page...

And if you look at this layout (page layout) in a grid version, these elements could be implemented using these modules:

Layout Search page in Grid version
Layout of a Search page in Grid version
  • A – Dynamic title of page = Text module
  • B – Search results for Internet user in the form of thumbnails = Blog module
  • C – A new section with a title = Text module (again)
  • D – A possibility to repeat the search if the first one was unsuccessful = Search module
  • E – Other elements or calls to action, i.e. content you would like to highlight on this page... = Any modules you want!

Do you know you can test Divi for free? See you on this page and click on "TRY IT FOR FREE"

3 – Creating the search page template with the Builder Theme

To customize this dynamic page, there is only one way: use the Divi Theme Builder Hey! Here's how:

Build Template Results Page
Build the Results Page template with the Divi Builder
  1. Go to tab Divi > Theme Builder
  2. Click "Add a new model"
  3. Assign him the model « Search results »
  4. Validate by clicking "Create a Model"
  5. Click "Building a Personalized Body"

3.1 – Build the layout of the search result page

Once the model has been created, you just have to make the design of this page without forgetting the necessary modules:

Add Dynamic Title
Add a dynamic title within the result page template
  1. Within the layout, insert a new line (also called "row")
  2. Then insert a Text module
  3. In the tab Content of the Text module, click on the database icon for use dynamic content proposed by Divi
  4. Choose « Poster / Title of archive »
Title Dynamics - continued
Added dynamic title – continued
  1. This dynamic title will show: « Your dynamic publication title will appear here ». Do not attempt to modify its text.
  2. However, you can change its appearance from the tab Style. Do not hesitate to change its size, colour, font, etc. so that it is to your liking.

3.2 – Display search results

When the internet user grabs a keyword using the magnifying glass, the native WordPress system will find him results. Here's how to make them appear on your search results page:

Add Blog Module
Add Blog module to view search results
  1. Add a new row
  2. Add it Blog module
  3. In the settings of this module, on the tab Content, select YES for the option « Message for the current page ».
  4. In the tab Content > Elements, you can define what you want to display.
  5. Then on the tab Style > Model, you can choose the Grid model which is much nicer than the Fullscreen model
  6. I mean, ever since Style tab, You can use all the options at your disposal to design the appearance of this module (color, size, shadow, animation, etc.).

3.3 – Proposing to renew research (optional)

Imagine that your reader did not find his happiness in his first search, you can improve his experience by offering him to renew this action without having to go again through the icon of the magnifying glass. This part is optional but if you wish, here is how to do it:

Add a new Title
Add new title
  1. Add a new section
  2. Insert a Text module to explain to the Internet user that he can renew his research.
  3. For example "Recommend a New Search".
Add Search Module
Add the Search module within the template
  1. Below, add a Search module
  2. In the settings of this module, from the tab Content, you can enter the text of the placeholder (i.e. the default text in the search bar). For example: What are you looking for?
  3. Since Contents > Exceptions, this module allows you to exclude certain content from the results, e.g. pages, articles or certain categories of articles. Unfortunately, we cannot exclude certain specific URLs, we will see later in this article how to achieve this...
  4. Then, in Style tab, you can set the look of the search bar (color, etc.)
  5. There, your search bar is ready.

3.4 - Add calls to action (optional)

Your search results page is now functional but nothing prevents you from adding various calls to action to encourage users to visit other pages or discover the flagship products of your shop!

After all, this page belongs to you and you can do whatever you want!

Custom Search Page Visual
Custom Search Page Visual
  1. Add for example a row with buttons, or your last 3 blog posts, or a contact form...
  2. Save your model.
  3. Leave the model and make sure to save again within the builder theme...

4 – Configure Google Analytics Site Search

At the beginning of the article, I told you that 348 people visited my search results page Last month... If I know that number, it's because I activated a small option in my account upstream. Google Analytics.

If you too want to collect this type of statistics, you need to activate...

In addition to knowing the number of visitors who use your internal search engine, you will also know the keywords that have been entered in this search bar... This is an important information that can tell you the needs of your visitors.

Here is how to activate this feature:

Enable Google Analytics Site Search tracking
Enable Google Analytics Site Search tracking
  1. See you in the tab Administration your Google Analytics account
  2. Select your account
  3. Select your property
  4. Click View Settings
  5. At the bottom of the page, activate the option Site Search Tracking
  6. In the field Parameter request, enter "s" . This is the parameter used in the URL by WordPress sites when users search.
  7. Record.

Here, from now on, your Google Analytics account records visits and requests from this page (see the official documentation for configure Site Search).

5 - Exclude some pages from the search

Finally, to complete this page, you can exclude certain search results on a case by case basis. For example, if your site holds private pages or pages that have no interest in the Internet (page cart, page my account, etc.) you may decide to exclude them from the results.

For this you can use the free extension Search Exclude.

Exclude some results
Exclude some research results

This extension is ultra easy to use:

  • Just install and then activate...
  • See the list of your pages or articles
  • Click Quick change
  • Check option "Exclude from Search Results" if you want this publication not to appear in the search results page of your site.
Search Exclude Option

If you want to exclude certain pages without using plugins, only by adding a few lines of code, Read this article.

6 - In conclusion...

Now you are the happy owner of a beautiful search results page And it only took you a few minutes!

You can also download a pre-built model for free create your search result page faster (available on the official blog).

Have you ever customized? Do you have any other idea to improve this page? Say it in comment.

Result Divi Pin
Pin Search Page

Want to customize Divi as a pro? Discover all the tutorials!

Get Divi

Divi training

Ebook Divi PDF

Free tips

Divi Quiz

Live coaching

icon 256x256

Proudly translated by wpLingua, the translation extension for WordPress That I develop! SEO-Friendly / Automatic / Editable

33 Comments

  1. Jess
  2. Lycia Diaz
  3. lucquin
  4. Lycia Diaz
  5. Lucas
  6. Bk
  7. Lycia Diaz
  8. Lycia Diaz
  9. Romano
  10. Romano
  11. Lycia Diaz
  12. Lucas
  13. Lycia Diaz
  14. cindy
  15. Lycia Diaz
  16. Mike
  17. Lycia Diaz
  18. PHILIPPE KERZERHO
  19. Lycia Diaz
  20. Vincent d'Eaubonne
  21. Lycia Diaz
  22. juan puyol
  23. Lycia Diaz
  24. Marie-Noëlle
  25. Lycia Diaz
  26. Marie-Noëlle
  27. Graines de référenceur
  28. Jean
  29. Lycia Diaz
  30. Solène
  31. Lycia Diaz
  32. Elise
  33. Lycia Diaz

Submit a comment

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

This site uses Akismet to reduce undesirables. Learn more about how your feedback data is used.