WordPress.org

Ready to get started?Download WordPress

Forums

how to change robot.txt for site description for google search (8 posts)

  1. bellapietra1501
    Member
    Posted 1 year ago #

    my site http://www.peteryongra.com 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.

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    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" />

  3. bellapietra1501
    Member
    Posted 1 year ago #

    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

  4. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    http://codex.wordpress.org/Settings_Privacy_Screen

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

  5. bellapietra1501
    Member
    Posted 1 year ago #

    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" />
    <title><?php
    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 ) );
    ?></title>

  6. sitespeed
    Member
    Posted 1 year ago #

    Have you checked your website using Rich Snippets by google.

  7. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    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.

  8. bellapietra1501
    Member
    Posted 1 year ago #

    will try. thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags