Support » Fixing WordPress » how to change robot.txt for site description for google search

  • my site does not have a site description when searched on google. the site comes up as: A description for this result is not available because of this site’s robots.txt – learn more.

    how can i change the robot.txt so that it shows a description of my site?

    my robot.txt is currently:
    User-agent: *
    Disallow: /wp-admin/
    Disallow: /wp-includes/

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • This is due to this line in the head:

    <meta name='robots' content='noindex,nofollow' />

    Use WP or your theme option (if in use) to set search engine visility

    Line should be:

    <meta name="robots" content="index, follow" />

    Thank you for the quick reply.

    i am sorry as I am new to this, but where do I add this line?

    the discourage engine visibility is not checked in my theme settings as I am using 3.5.1

    Your theme should then pull in this setting using PHP, generally in header.php

    thank you.

    i unchecked the discourage search engines from indexing this site box to ask search engines to index this site.

    and added the line into my header.php but nothing has changed when i search on google.

    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
    <meta name=”robots” content=”index, follow” />
    <meta name=”viewport” content=”width = device-width, initial-scale = 1.0, minimum-scale = 1.0″ />
    global $page, $paged;
    wp_title( ‘|’, true, ‘right’ );
    bloginfo( ‘name’ );
    $site_description = get_bloginfo( ‘description’, ‘display’ );
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo ” | $site_description”;
    if ( $paged >= 2 || $page >= 2 )
    echo ‘ | ‘ . sprintf( __( ‘Page %s’, ‘ds-framework’ ), max( $paged, $page ) );

    Have you checked your website using Rich Snippets by google.

    Create a Google Webmaster account, add your site, verify ownership, submit your robots.txt file and then re-index the site using their tools…

    As for when the site will be indexed and how it will be listed, review that with Google – hint: it is based on content and how many other sites also publish this content…review again with Google how sites are indexed/listed (and also with the other major Search Engines) and have a read online RE Search Engine Optimization.

    will try. thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘how to change robot.txt for site description for google search’ is closed to new replies.