Support with .404 template and search results template
Hi Brizy Support,
I've created a custom 404 template using Brizy Templates, and I've also built a separate search results template. However, when I use the search bar on the 404 page, the search results don't filter or display correctly.
I've tried setting up the search template with various combinations (archives, posts, different settings), but nothing seems to work. It looks like the search either isn't triggering the correct template or the filtering logic isn't being applied.
Can you please advise on the correct way to set this up so that:
-
The 404 page can include a search bar.
- Submitting a search from the 404 page loads the correct search results template with proper filtering.
I've attached photos of the two pages in question, example of the problem: i type services into the search bar and i get privacy policy come up first as a result.
Let me know if you need access or a link to the site to investigate further.
Thanks in advance,
Seb V
-
Hello Seb,
Kindly follow the procedure at https://jmp.sh/Y7uxE8ab to develop a search template and check if the issue resolves. Please also share the URL of your project where we can see the above issue.
-1 -
Hi KC George,
I recently tested using the Archive block instead of the Posts block, but found that the filtering capabilities were actually worse—especially when using keywords like "services" or "blog."
For now, I’ve decided to stick with the Posts block, as its filtering seems slightly better (though still far from ideal).
Here’s the URL to the 404 page in question: https://beetledigital.com/404
As a side note, when I search for "services", the results are dominated by blog posts rather than service pages, which isn't the intended behavior.
Appreciate any suggestions or insights!
Thanks,
Seb V0 -
Side note:
this is the result i get from using the archive block with the settings as: Filter by title, rather than using the posts block with the settings: current query/relevance.0 -
Hello Seb,
To improve the search quality, you could explore search plugins. Have a look at https://www.easywp.com/blog/site-search-plugins/ for a list of search plugins you could consider. Try setting up these plugins on a staging/test site first (before implementing it on a live site)
0 -
Hey KC George,
Some plugins did help fix the relevance issue, but I’ve found that AJAX search lite and a few others keep reverting back to the Astra theme’s default search layout, instead of using the Brizy search results template I’ve set up. I’ve tried using both post and archive blocks in Brizy, but there still seems to be a disconnect in how the results are being displayed.
I did come across a workaround using Relevanssi and some custom PHP via a code snippet. It kind of worked, but it feels like a long and clunky way to simply display search results with decent relevance on a custom results page.
Any advice or direction on how to better connect the search query to a Brizy-designed results page would be greatly appreciated.
0 -
Hello Seb,
Please note that the default WordPress search relies on the database's built-in full-text search capabilities, which primarily indexes post titles, excerpts, and content. Search plugins may have the ability to generate their own index, apart from WordPress's default index, which can contain a variety of content, including custom fields and custom post types. Using a widget or a shortcode, some search plugins may offer their own search bar; in such cases, please replace the Brizy search element in your Search Template with the plugin's search bar.
We do not know why you see the Astra theme’s default search layout, instead of the Brizy search results template. Do you want us to take a look at your WordPress Dashboard to troubleshoot this issue? If you do, please add a new user to your WordPress Dashboard and send the following details to our email: communitysupport@brizy.io
- Support Forum link: https://support.brizy.io/hc/en-us/community/posts/27028218810130
- WordPress Admin URL:
- Username
- Password
Please let us know in this forum when you send us the email.
0
Please sign in to leave a comment.
Comments
6 comments