It's so easy to customize the search results page on your Divi site! In fact, this tutorial will only take you 5 minutes to complete, but will allow you to deliver a more "professional" site.
If you don't know what the search results page is, it's very simple: it's the results presented when a user uses the "magnifying glass" icon to search your site. The page displayed then shows the results of their search for a given query. It is therefore a dynamic page whose results will vary according to the user.
To test this Divi Tips blogIf you want to search for a keyword, don't hesitate to enter it using the magnifying glass on the main menu (top right)... You will then see that my search page is customized and doesn't look like the basic page proposed by the Divi theme, as you can see on the following image :

In the image above, you can see that the basic search results page (top) is much less attractive and much less optimised 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 going through it 😉 !
1 - Why customise your site's search results page?
If you look at the image below, you can see that just over 1% of visitors to the Divi Tips blog search via the magnifying glass icon...

In the last 30 days, 348 people have searched my blog to find answers to their questions...
1% of visits is very low, but if I hadn't personalised this page in the search results, 348 people would have visited an unoptimised and unbranded page. This does not reflect the image I would like my blog to have.
This is a good reason to customize this page in the search results: it will match your brand image and will not stand out from other pages....
Read also: 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 page, it is composed of 5 elements:

- A - The dynamic title of the page
- B - The results of the user's search in the form of thumbnails
- C - A new section with a title
- D - A possibility to restart the search if the first one was unsuccessful
- E - Other elements or calls to action, i.e. content that you would like to highlight on this page...
And if you look at this layout in grid form, these elements could have been set up using these modules:

- A - The dynamic title of the page = Text module
- B - The results of the user's search in the form of thumbnails = Blog module
- C - A new section with a title = Text module (again)
- D - A possibility to restart the search if the first one was unsuccessful = Search module
- E - Other elements or calls to action, i.e. content that you would like to put forward on this page... = all the modules you want!
Did you know that you can test Divi for free? Go to this page and click on "TRY IT FOR FREE
3 - Creating the search page template with the Theme Builder
There is only one way to customise this dynamic page: use the Divi Theme Builder ! Here's how to do it:

- Go to the Divi > Theme Builder
- Click on "Add a new template
- Assign the template to it "Search results
- Validate by clicking on Click on "Create a template".
- Click on "Building a personalised body
3.1 - Construction of the layout of the search result page
Once the template has been created, all you have to do is to design the page without forgetting the essential modules:

- Within the layout, insert a new line (also called a "row")
- Then insert a Text module
- In the Content tab of the Text module, click on the database icon to using dynamic content proposed by Divi
- Choose "Post / Title of the archive

- This dynamic title will show : "Your dynamic publication title is displayed here. Do not attempt to change its text.
- However, you can change its appearance from the Style tab. Feel free to change its size, colour, font, etc. to suit your taste.
3.2 - Showing search results
When the user enters a keyword using the magnifying glass, the native WordPress system will find results for them. Here's how to make them appear on your search results page:

- Add a new row
- Add the Blog module
- In the settings of this module, in the tab Contenttab, select YES for the option "Message for the current page.
- In the tab Content > Elementstab, you can define what you want to display.
- Then, in the Style > Modeltab, you can choose the model Grid which is much nicer than the Full screen template...
- Finally, still from the Style tab, you can use all the options at your disposal to design the appearance of this module (colour, size, shadow, animation, etc.).
3.3 - Propose to renew the research (optional)
Imagine that your reader did not find what they were looking for on their first search, you can improve their experience by offering them the option of repeating this action without having to go through the magnifying glass icon again. 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 user that he can renew his search.
- For example "Start a new search".

- Below, add a Search module
- In the settings of this module, from the Contenttab, you will be able to enter the placeholder text (i.e. the default text in the search bar). For example: What are you looking for?
- From the Contents tab > Exceptionsthis module allows you to exclude certain content from the results, for example pages, articles or certain categories of articles. Unfortunately, you cannot exclude specific URLs, we will see later in this article how to do this...
- Then, in the Style tabyou can define the appearance of the search bar (colour, etc.)
- Now your search bar is ready.
3.4 - Adding calls to action (optional)
Your search results page is now functional, but there's nothing to stop you from adding various calls to action to encourage users to visit other pages or discover your shop's top products!
After all, this page is yours to do with as you please!

- Add for example a row with buttons, or your last 3 blog posts, or a contact form...
- Save your model.
- Exit the template and make sure you save again in the builder theme...
4 - Configuring the Google Analytics "Site Search
At the beginning of this article, I told you that 348 people visited my search results page last month... If I know this number, it's because I activated a small option in my account Google Analytics.
If you also want to collect this type of statistics, you must activate it...
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 therefore important information that can tell you what your visitors' needs are.
Here's how to activate this feature:

- Go to the Administration tab of your Google Analytics account
- Select your account
- Select your property
- Click on View settings
- At the bottom of the page, activate the Site Search Monitoring
- In the Parameter query field, enter " s". This is the parameter used in the URL by WordPress sites when users do a search.
- Record it.
That's it, from now on, your Google Analytics account will record visits and queries to this page (see the official documentation for configure Site Search).
5 - Exclude certain pages from the search
Finally, to perfect this page, you can exclude certain search results on a case by case basis. For example, if your site has private pages or pages that are of no interest to the user (shopping cart page, my account page, etc.) you could decide to exclude them from the results.
For this, you can use the free extension Search Exclude.

This extension is very easy to use:
- All you have to do is install it and activate it...
- Go to the list of your pages or articles
- Click on Quick change
- Check the option "Exclude from Search Results if you do not want this publication to appear in the search results page of your site.

If you want to exclude certain pages without using a plugin, just add a few lines of code, read this article.
6 - In conclusion...
You are now the proud owner of a great search results page and it only took a few minutes!
You can also download a free pre-built template for create your search results page more quickly (available on the official blog).
Did you already customise it? Do you have any other ideas to improve this page? Tell us in comments.


Want to customize Divi like a pro? Check out all the tutorials!
Bonjour,
Merci pour ce tutos ma page recherche est bien plus belle ! Par contre je rencontre un soucis avec le module « chercher », mon site est un site de vente en ligne, j’ai configurer le bouton recherche dans le menu pour avoir uniquement la liste de mes produits avec les termes rechercher mais quand j’utilise le module « chercher » cela ne me retourne aucun résultat. Y aurait-il quelque chose que j’ai oublié de faire ?
Merci d’avance
Salut Jess. Il faut regarder au niveau des paramètres du module peut-être ?
Bonjour,
Merci pour le tuto,
Comment afficher le prix de mes produit sur la page de recherche ?
Hum Lucquin c’est une bonne question…
Bonjour,
Merci pour ce tuto ! Cependant après avoir suivi les étapes du tutoriel, je me rends compte que lorsque j’effectue une recherche sur mon blog divi, l’apparence n’a pas changé. C’est-à-dire que l’apparence de la recherche de mon blog se décrit de la façon suivante : une colonne à droite et une colonne à gauche contenant les articles de ma recherche les un à la suite des autres. Il s’agit de la recherche de base de divi. Or, en suivant votre tuto, j’ai bien créé un module de recherche avec un modèle de blog en grille mais ce dernier ne figure pas comme vous.
Y-a-t-il un moyen d’éviter d’obtenir la colonne à droite et avoir le même affichage que vous ? J’imagine qu’il y a une configuration à effectuer pour modifier l’apparence de la recherche en amont.
Je ne sais pas si vous voyez ce dont je parle. En espérant que vous puissiez m’aider 🙂
Bonjour, je souhaite n’afficher les résultats de recherche que d’une seule page.
J’ai listé des documents PDF à télécharger et je souhaite que les internautes puissent rechercher rapidement le document sur cette même page. Comment faire ? Merci !!
Salut BK, je ne sais pas. Si tu utilises le plugin d’exclusion ça devrait marcher mais du coup, ça va marcher pour tout ton site et non que pour la page que tu désires.
Salut Lucas, heu tu as peut-être mal paramétré ton modèle dans le Thème Builder. Il faut l’attribuer à la bonne page et tu dois aussi sauvegarder 2 fois pour que ça fonctionne.
Hello, j’ai le même problème que Lucas, et j’ai vérifié le paramétrage qui pointe sur la pages « Résultats de recherche ». Donc ok, enregistré deux fois, mais rien à faire : la recherche tombe toujours sur la page WordPress…
Merci de ton retour !
Rebonjour,
Cela fonctionne maintenant, il fallait que je me log une nouvelle fois 😉
Merci pour cette page !
Ah super
Bonjour,
Je ne parviens pas à vous écrire un email alors j’écris ici.
Je souhaite intervenir sur mon précédent commentaire. L’affichage de la recherche s’est finalement mise à jour.
Il a fallu que je me déconnecte de WordPress, je ne sais pas pourquoi mais en tout cas je confirme que votre tuto a bien fonctionné.
Veuillez m’excuser pour ce double commentaire.
Cordialement.
Super Lucas, merci du retour !
Bonjour Licia, j’ai un souci j’ai bien la barre de recherche sur mon site mais lorsque je fais une recherche il n’y a aucun résultat. Je ne comprends pas pkoi. Pouvez vous m’aider ?
Salut Cindy. As-tu essayé plusieurs requêtes pour voir si rien ne marche, car ça me parait bizarre, le moteur de recherche natif de WordPress a toujours bien fonctionné.
Hi, helpful blog, thanks. How do I edit the existing search results page? I can’t see the page in the Pages section of WordPress. And do I need to create a new page for ‘no results’? Currently, if there are no results, my users get a blank page. Cheers
Hello Mike ! No, you just have to create a Search Result Page like that… if there is no result, you might have a page with « no result found »… you should don’t have a blank page, it seems to be wrong, I think…
Bonjour Lycia,
Je découvre ton tuto qui m’a drôlement aidé à personnaliser ma page de résultat de recherche.
Y a-t-il un moyen d’intervenir sur le format de l’image?
Dans les résultats de recherche les photos sont horizontales alors que sur mon site elles sont toutes verticales…
Encore merci !
Ah aucune idée ! Dans les options du module tu as regardé ?
Bonjour Lycia, et bravo pour votre travail.
Pour info, je suis sur votre tuto relatif à la page recherche. Il propose de cliquer sur la loupe de votre site pour ce faire une idée de la configuration, mais voilà, je ne trouve pas votre loupe en haut à droite. Une évolution récente sans doute 🙂
Ah bizarre. Il faut que je regarde…
Bonsoir à vous . Je travaille sur un projet de site web et j ai besoin de votre aide. j’ai crée une rangé avec divi dans laquelle j’ai mis un module texte pour mettre un titre , puis un module recherche. Ensuite j’ai crée trois rangés dans lesquelles j’ai mis des modules bascules avec des fichiers pdf à l’intérieur téléchargeable. Lorsqu’on fait la recherche rien ne s’affiche . Svp comment lier le module recherche au module bascule qui contient les pdf téléchargebles pour qu’il soit affiché et téléchargé par celui qui visite la page . Merci
Je ne sais pas si c’est possible
Hello Lycia, Merci pour ce tuto ! Une question : comment faire apparaitre le résultats de recherche (cf 3.2) quand la recherche s’effectue dans une boutique woocommerce et non dans un blog ? En gros, il faudrait que ça soit des produits qui apparaissent et non des articles de blog. Merci d’avance.
Salut Marie Noëlle. Alors, as-tu essayé avec ce plugin gratuit https://fr.wordpress.org/plugins/search-exclude/ – il permet d’exclure des types de post lors des recherches (à tester) – sinon, il y a ça : https://wpzone.co/wordpress-and-divi-code-snippets/search-woocommerce-products-and-tags-with-divis-search-module/
Merci Lycia, je vais tester. Bonne journée,
MN