Skip to content

Display the 'Search Engines Discouraged' (or any translation) notification in the WordPress Toolbar if blog_public option has been checked.

License

Notifications You must be signed in to change notification settings

divibanks/search-engines-blocked-in-header

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search Engines Blocked in Header


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.


Description

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.

Why this matters

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.


🔑 Key Features

  • 🔔 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.

🖼️ Screenshots

Screenshot-2

Screenshot-1


📦 Installation

  1. Upload the search-engines-blocked-in-header folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. That’s it! If Settings > Reading > Search engine visibility is disabled, a red warning will show in the admin bar.

❓ Frequently Asked Questions

What does the "Search Engines Discouraged" warning mean?

It means WordPress is configured to discourage search engines from indexing your site. This is often used in development or staging environments.

Who is this plugin for?

Anyone managing a WordPress site who wants a clear, persistent reminder that their site is hidden from search engines.

Where can I get help?

For support, visit the WordPress plugin support forum.


🙌 Contributing

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.


☕ Support Development

If you find this plugin helpful, consider sponsoring us on GitHub. Your support helps in maintaining and improving the plugin!


📄 License

This plugin is licensed under the GPLv2 or later. See

About

Display the 'Search Engines Discouraged' (or any translation) notification in the WordPress Toolbar if blog_public option has been checked.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages