Disable Search
Disable the built-in front-end search capabilities of WordPress.
Overview
Compatibility
Installation instructions
Customer support & learning resources
Changelog
Main benefits
Prevents search form appearance
Disables search widget
Removes search block
Blocks manual search requests
Returns 404 for searches
About this plugin
Author: Scott Reilly
Categories: Widgets and Sidebars
Version: 2.0.1
Last updated: 03-09-2023
WordPress version: 4.6
Tested up to: 6.3.5
PHP version required: false
Languages: Čeština, Deutsch (Sie) [+1]
Tags:
Learning resources: View resources
Overview
This WordPress plugin is designed to completely disable any search functionality on the front-end of your site. By preventing the search form from being displayed and deactivating any search widgets or blocks, it ensures that visitors cannot perform any search actions, either through the UI or direct GET/POST requests. Additionally, attempts to search will result in a 404 File Not Found response, maintaining your site's integrity. This plugin also integrates with Yoast SEO to disable all search-related SEO schema outputs, enhancing security and performance without impacting the search capabilities of the admin backend. Ideal for sites where search functionality is unnecessary or needs to be restricted.
Prevents Search Form Appearance
- Prevents the search form from appearing if the theme uses the standard get_search_form() function.
- Prevents the search form from appearing if the theme uses a searchform.php template.
- Prevents the search item from appearing in the admin tool bar when shown on the front-end.
Disables Search Widget
- Removes the Search widget from the list of available widgets.
- Deactivates any search widgets currently in use in any sidebars (they are hidden, not deleted).
Disables Search Block
- Removes the Search block from the list of available blocks.
- Deactivates any search blocks currently in use, such as in posts or as a widget (they are disabled, not deleted).
Prevents Search Requests
- Prevents any direct or manual search requests by visitors from returning search results.
- Submitted search attempts will receive a 404 File Not Found response.
- Disables output of SearchAction in SEO schema by the Yoast SEO plugin.