Your Time:
Our Time:
← Back to discussions

SEO/Site Maps..

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 4 replies, 2 voices, and was last updated 12 years, 3 months ago by FireHouseWH.

  • 2014-06-06 at 5:46 am
    Support Expired
    #4306
    FireHouseWH
    Participant
    • Topics: 24
    • Replies: 65
    • Total posts: 89
    • Post count: 100

    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

    2014-06-07 at 2:36 pm
    #4335
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Yes its comptaible. Theme comes with a default sitemap template where you can create a page template and assign the template as sitemap and publish.

    2014-06-08 at 7:58 am
    Support Expired
    #4342
    FireHouseWH
    Participant
    • Topics: 24
    • Replies: 65
    • Total posts: 89
    • Post count: 100

    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

    2014-06-10 at 7:45 am
    Support Expired
    #4349
    FireHouseWH
    Participant
    • Topics: 24
    • Replies: 65
    • Total posts: 89
    • Post count: 100

    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

    2014-06-10 at 8:14 pm
    Support Expired
    #4355
    FireHouseWH
    Participant
    • Topics: 24
    • Replies: 65
    • Total posts: 89
    • Post count: 100

    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

    • This reply was modified 12 years, 3 months ago by FireHouseWH.

You must be logged in to reply to this topic.