You have previoushly helped me with a custom search results page for a site I am working on - https://wordpress-1397640-5529563.cloudwaysapps.com/ The search results page is working as I want it to, but I’ve just realised that it just shows zero results if there are zero results. How do I add a condition or seperate page that deals with this happening?
Hello @simonwr1976,
Thanks for writing to us.
You can add a section to the search archive layout where you can add your custom message, and you need to set the condition on the section.
{{ looper.found_posts }}==0
If you set this condition on your section, then this section will be displayed only when there is no post found.
Hope it helps
Thanks
thanks for the help