How to disable Search results page of ?s=
-
I’m trying to figure out how to disable the search results page which is produced by entering https://www.yourwebsite.com/?s=terms
I am using this custom theme which has its own search interface that is built into the theme. They use the built-in WordPress search but add on to it.
The themes search results page is different from what displays on the yoursite.com/?s=terms page, however both of these pages are using the theme’s search.php file.
The issue is, the theme developer has not considered the situation where an end-user would manually enter something like ?s=terms into their browser. And my issue is that there are missing featured image thumbnails on the WordPress ?s=terms result page.
I can’t fully disable the WordPress search functionality on the front end (as described in this article: https://www.wpbeginner.com/wp-tutorials/how-to-disable-the-search-feature-in-wordpress/), because it will also break my themes search functionality and direct everything to a 404 page.
Is there a way to simply disable the ?s= page from displaying results?
- The topic ‘How to disable Search results page of ?s=’ is closed to new replies.