I am building a site on Wordpress am trying to untikc the box 'Discourage Search engines from indexing this site' but it will not allow me to untick this box?
Any ideas on how I can change this?
Thanks S
CodePudding user response:
Try using troubleshoot plugin by deactivating all the plugins/themes and see if there is any plugin that conflicts with your WordPress after that you can see what is wrong and fix it so you want have any problems in the future.
CodePudding user response:
Go to your database -> wp_options (wp is prefix) find/search for blog_public set value from 0 to 1
Second solution if you dont have access to database
function fix_update_blog_public() {
$option = get_option( 'blog_public' ); // Get current option
if($option == 0): // If option is checked = 0
update_site_option( 'blog_public', 1 ); // Uncheck option = 1
endif;
}
add_action('init','fix_update_blog_public');