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:
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...
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:
- 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:
- 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:
- Go to tab Divi > Theme Builder
- Click "Add a new model"
- Assign him the model « Search results »
- Validate by clicking "Create a Model"
- 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:
- Within the layout, insert a new line (also called "row")
- Then insert a Text module
- In the tab Content of the Text module, click on the database icon for use dynamic content proposed by Divi
- Choose « Poster / Title of archive »
- This dynamic title will show: « Your dynamic publication title will appear here ». Do not attempt to modify its text.
- 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 a new row
- Add it Blog module
- In the settings of this module, on the tab Content, select YES for the option « Message for the current page ».
- In the tab Content > Elements, you can define what you want to display.
- Then on the tab Style > Model, you can choose the Grid model which is much nicer than the Fullscreen model…
- 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 section
- Insert a Text module to explain to the Internet user that he can renew his research.
- For example "Recommend a New Search".
- Below, add a Search module
- 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?
- 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...
- Then, in Style tab, you can set the look of the search bar (color, etc.)
- 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!
- Add for example a row with buttons, or your last 3 blog posts, or a contact form...
- Save your model.
- 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:
- See you in the tab Administration your Google Analytics account
- Select your account
- Select your property
- Click View Settings
- At the bottom of the page, activate the option Site Search Tracking
- In the field Parameter request, enter "s" . This is the parameter used in the URL by WordPress sites when users search.
- 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.
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.
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.
Want to customize Divi as a pro? Discover all the tutorials!
33 Comments