HTML error in frontend, robots noindex suggestion
-
Found an HTML error in frontend in file
template.phpin line 357:<sec class="right-section full_screen_mode" ...Should be like this:
<section class="right-section full_screen_mode" ...And would suggest for Google etc. to set
robotstonoindexif plugin shows the under construction template in frontend, maybe add code similar to this intemplate.phpat about line 24:$this->remove_header_tage_run_hook();
add_action('wp_enqueue_scripts', array($this, 'inc_js_file'));
add_action('wp_enqueue_scripts', array($this, 'inc_css_file'));
// suggested fix: override any other robots values
add_filter( 'wp_robots', function( $robots ) {
return array( 'noindex' => true );
}, PHP_INT_MAX );Another possible solution here would be replacing the WordPress HTTP status
200 OKwith503 Service Unavailableand aRetry-Aftervalue.Currently search engines etc. will happily index the under construction message for any already known page if additional extra settings in WordPress or SEO plugins etc. do not prevent that.
WP Maintenance Mode & Site Under Construction 4.4, WordPress 6.x
You must be logged in to reply to this topic.