A simple WordPress plugin that displays a red-colored admin bar notice labeled "Search Engines Discouraged" if your site is set to discourage search engine indexing.
The Search Engines Blocked in Header plugin enhances your WordPress admin experience by providing a clear and highly visible notice in the admin toolbar whenever the blog_public
setting is disabled — meaning your site is not visible to search engines.
This setting is often used during development or maintenance phases, but it’s easy to forget it’s enabled. This plugin makes sure that setting doesn't go unnoticed.
- 🔔 Admin Toolbar Notification: Displays a warning when search engines are blocked.
- 🔴 Red Background Alert: Uses red styling to make the notice prominent and attention-grabbing.
- 🧩 Seamless Integration: Hooks into the admin toolbar without disrupting other elements.
- 💅 Custom CSS File: External CSS file for clean, maintainable code.
- 🌍 Translation Ready: The warning message is fully translatable to match your site's language.
- ✅ Tested Compatibility: Fully tested with PHP 8.4 and WordPress 6.8.
- Upload the
search-engines-blocked-in-header
folder to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- That’s it! If
Settings > Reading > Search engine visibility
is disabled, a red warning will show in the admin bar.
It means WordPress is configured to discourage search engines from indexing your site. This is often used in development or staging environments.
Anyone managing a WordPress site who wants a clear, persistent reminder that their site is hidden from search engines.
For support, visit the WordPress plugin support forum.
Pull requests are welcome! Please open an issue first to discuss what you’d like to change.
For major changes, please open an issue to discuss what you’d like to contribute.
If you find this plugin helpful, consider sponsoring us on GitHub. Your support helps in maintaining and improving the plugin!
This plugin is licensed under the GPLv2 or later. See