Comments on: How to create a custom search result page https://www.markhendriksen.com/create-custom-search-result-page/ Thu, 24 Apr 2025 04:39:51 +0000 hourly 1 https://wordpress.org/?v=6.8.3 By: Amanda https://www.markhendriksen.com/create-custom-search-result-page/#comment-7190 Sat, 07 Sep 2019 04:42:08 +0000 https://www.markhendriksen.com/?p=1566#comment-7190 Thanks Mark. This worked great.

]]>
By: John https://www.markhendriksen.com/create-custom-search-result-page/#comment-5196 Mon, 10 Jun 2019 17:38:44 +0000 https://www.markhendriksen.com/?p=1566#comment-5196 Really Thank you so much for this.., Please continue this good work…

]]>
By: F. Saskiano https://www.markhendriksen.com/create-custom-search-result-page/#comment-3834 Tue, 09 Apr 2019 17:03:59 +0000 https://www.markhendriksen.com/?p=1566#comment-3834 In reply to OSh.

The header can be a problem, specially if you’re using something like a Divi fullwidth header and nav section, which I have done to make the main nav menu appear below the fullwidth header – it’s just a Divi fullwidth menu.

Of course, on pages such as the generated search results page, the Divi system just uses the default template (not the Blank Page) and there’s no way to change that – except for the way Mark describes here, which works perfectly.

I didn’t want to wade into making a different header for my custom search results page, so I just dumped the default Divi header with this CSS:

#main-header { display:none; }

That clears the way for the custom search page I created using Mark’s technique.

]]>
By: karl https://www.markhendriksen.com/create-custom-search-result-page/#comment-2038 Thu, 22 Nov 2018 15:09:11 +0000 https://www.markhendriksen.com/?p=1566#comment-2038 You could also add the following
found_posts; ?> : “”

After your header module which will show people what they searched for & results. You will need to add some css styling

I called my div “search-term-results”
#search-term-results h1{
text-transform: capitalize;
font-size: 18px;
color: #00aad4 !important;
text-align: center;
}

]]>
By: Linda https://www.markhendriksen.com/create-custom-search-result-page/#comment-2032 Tue, 20 Nov 2018 20:22:46 +0000 https://www.markhendriksen.com/?p=1566#comment-2032 Hi Mark,

I’ve changed my custom search result page exactly the way you did it a while ago. I did this through another tutorial, but this was similar to your way.

What I noticed last week (something I didn’t notice before) is that my customized “no search result page” does work. But it even shows up when I type in a query that should be found on my website. So now the whole search form doesn’t work anymore, and always shows the customized “no results” page…
Do you have any idea what I can do about this?

If I delete thee search.php file from my child-theme, I do get my search results back, but with a random typed in query (that doesn’t mean anything) I do not get my customized page anymore but just the standard one. (logical ofcourse)

Hence I think there is an error or absence of some coding in my search.php file that creates this problem. But I don’t have a single clue what?

Can you please help me with this?

Thanks in advance!

Best regards,
Linda

]]>
By: Lou https://www.markhendriksen.com/create-custom-search-result-page/#comment-1708 Mon, 17 Sep 2018 14:41:34 +0000 https://www.markhendriksen.com/?p=1566#comment-1708 Thank you – works like a treat!

]]>
By: Shelle https://www.markhendriksen.com/create-custom-search-result-page/#comment-1228 Tue, 19 Jun 2018 00:15:08 +0000 https://www.markhendriksen.com/?p=1566#comment-1228 Thanks for sharing Mark, you are a life saver! Happily going through and adding this method on all pages not accessible via Divi and the Divi Builder 🙂

]]>
By: Mark https://www.markhendriksen.com/create-custom-search-result-page/#comment-1124 Sat, 26 May 2018 08:50:40 +0000 https://www.markhendriksen.com/?p=1566#comment-1124 In reply to Horia Bologan.

Your welcome Horia!

]]>
By: Horia Bologan https://www.markhendriksen.com/create-custom-search-result-page/#comment-1117 Fri, 25 May 2018 11:45:52 +0000 https://www.markhendriksen.com/?p=1566#comment-1117 I just can’t thank you enough for this trick! It’s amazing. Been woking with Divi websites for 2 years and just got one that had a very uncommon header ( I had to create it with the builder ). Now I can import it in every page template like this ! Thank you man. Also cheers for all your great work !

]]>
By: Mark https://www.markhendriksen.com/create-custom-search-result-page/#comment-1114 Fri, 25 May 2018 07:53:46 +0000 https://www.markhendriksen.com/?p=1566#comment-1114 In reply to Theresa.

Hi Theresa,

That is actually a great idea for a new post topic.

]]>