This topic has 4 replies, 2 voices, and was last updated 12 years, 3 months ago by FireHouseWH.
Viewing 5 posts - 1 through 5 (of 5 total)
Hello,
I understand that HostmeV2 is SEO optimized already..Yet, I was wondering if an SEO plugin such as Yoast would still be recommended or if the site would take care of itself in this respect, and would only need to be concerned with setting up an site map?
Best Regards,
Laura
Hello,
Not quite sure what you were referring to when you said “Yes its compatible.” Were you meaning about Yoast SEO plugin? I wasn’t really concern about compatibility, I’m just wondering if the theme is SEO optimized by itself to where using a SEO plugin wouldn’t be necessary. Thanks for the information on the site map, I must have been overlooking it when creating pages, appreciate you bring it to my attention 🙂
Best Regards,
Laura
mmmmm Unfortunately, the default site map isn’t accepted by Google Webmaster tools as it needs the .xml extension, so I tried installing All In One Seo plugin, but then found that there’s an issue with the robots.txt file, meaning that there isn’t one..yet it’s blocking the sitemap’s only url at the moment, which is the Homepage..when I called my hosting provider they said there seems to be a default one being used by WordPress within the function.php file, else there could be an issue within the theme somewhere..I’ve uninstalled All In One Seo plugin, tried Yoast, among other things..Lastly I just installed Google XML Sitemaps, and still no luck when attempting to test the sitemap in Google Webmaster’s tools..Any ideas what’s going on here?
Best Regards,
Laura
Okay, just to update this thread, I’ve managed to sort out the problem with Google Webmaster tools and the blocking of the sitemap by the “virtual” default WordPress robots.txt file within the function.php file..Simply go in your /wp-includes/funcions.php file, and around line 1152 line look for this:
function do_robots() {
header( 'Content-Type: text/plain; charset=utf-8' );
/**
* Fires when displaying the robots.txt file.
*
* @since 2.1.0
*/
do_action( 'do_robotstxt' );
$output = "User-agent: *\n";
$public = get_option( 'blog_public' );
if ( '0' == $public ) {
$output .= "Disallow: /\n"; <---change this to Allow
} else {
$site_url = parse_url( site_url() );
$path = ( !empty( $site_url['path'] ) ) ? $site_url['path'] : '';
$output .= "Disallow: $path/wp-admin/\n";
$output .= "Disallow: $path/wp-includes/\n";
$output .= "Disallow: $path/wp-content/plugins/\n"; <---Add any Disallow areas here
}
/**
* Filter the robots.txt output.
*
* @since 3.0.0
*
* @param string $output Robots.txt output.
* @param bool $public Whether the site is considered "public".
*/
echo apply_filters( 'robots_txt', $output, $public );
}
Then upload the plugin(s) you wish to use to create your sitemap with 🙂
Best Regards,
Laura
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.