Smart Crawler - disturbing message in the backend of a staging site

Hi there,

I am getting this message after I activitated smartcrawler
"This site discourages search engines from indexing the pages, which will affect your SEO efforts. You can fix this here"

I know what it means and why it is there but for the staging site there is no way to fix this!
So the message just remains there and it is pretty disturbing because it is constantly there and not dismissable.

What to do?
The staging site is automatically set to " Discourage search engines from indexing this site " and this option is not editable on my staging platform.

Warm regards,

  • Sajid

    Hello Sebastian,
    Hope you are doing good today :slight_smile:

    That nag will comeup whenever it detects the site is not set to public. Right now the only way to remove this nag is by either removing it from plugin files (not recommended at all) or try using the following code snippet.

    function wpmudev_hide_smc_nag(){
    	remove_action('admin_notices', 'wds_blog_not_public_notice');
    add_action('plugins_loaded', 'wpmudev_hide_smc_nag', 11 );

    Add above code in functions.php file of your child theme or use it as mu-plugin.

    If you go with mu-plugin route then, go to your /wp-content/ folder via FTP, and find the folder called "mu-plugins". If there is no folder with that name, then you'll want to create one. Then, create a file inside that folder, and give the file any name you like and paste the code in there.

    You don't need to activate that plugin, as it will be always be automatically activated. Please be sure to add a PHP start tag at the beginning of the code if you insert this code as a mu-plugin, like this:


    Take care and have a nice day :slight_smile:

    Best Regards,
    Sajid - WPMU DEV Support