1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

WP Site Excluded by ‘noindex’ tag

Discussion in 'Search Engine Optimization' started by afridy, Oct 14, 2022.

  1. #1
    Hi guys,

    Google seach console shows nearly 54 URLs out of 196 URLs discovered are "Excluded by ‘noindex’ tag". My website is a wp woo commerce website.
    now i have no idea how do i remove noindex from all these pages?

    Please advise.

    Thank you.
     
    afridy, Oct 14, 2022 IP
  2. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,198
    Likes Received:
    1,672
    Best Answers:
    29
    Trophy Points:
    475
    #2
    What have you tried so far? I saw one solution that goes like this:

    1. Log in to WordPress.
    2. Go to Settings → Reading.
    3. Scroll down the page to where it says "Search Engine Visibility"
    4. Uncheck the box next to "Discourage search engines from indexing this site"
    5. Hit the "Save Changes" button below.
    If that didn't work, try this:

    In the public_html directory find the folder named wp-includes. In the folder find the file named general-template.php. Open it, find:

    function wp_no_robots() {
    if ( get_option( 'blog_public' ) ) {
    echo "<meta name='robots' content='noindex,follow' />\n";
    return;
    }
    
    echo "<meta name='robots' content='noindex,nofollow' />\n";
    }
    Code (markup):

    Replace it with:


    function wp_no_robots() {
    if ( get_option( 'blog_public' ) ) {
    echo "<meta name='robots' content='index,follow' />\n";
    return;
    }
    echo "<meta name='robots' content='index,follow' />\n";
    }
    Code (markup):
    Then find:

    function wp_sensitive_page_meta() {
    ?>
    <meta name='robots' content='noindex,noarchive' />
    <meta name='referrer' content='strict-origin-when-cross-origin' />
    <?php
    }
    Code (markup):
    Replace it with:

    function wp_sensitive_page_meta() {
    ?>
    <meta name='robots' content='index,archive' />
    <meta name='referrer' content='strict-origin-when-cross-origin' />
    <?php
    }
    Code (markup):
     
    qwikad.com, Oct 15, 2022 IP
    afridy likes this.
  3. afridy

    afridy Well-Known Member

    Messages:
    810
    Likes Received:
    116
    Best Answers:
    0
    Trophy Points:
    135
    #3
    i am sorry, the text not found when find in the general-template.php
    even i tried just 'robots' and not found even that word.
     
    afridy, Oct 15, 2022 IP
  4. Oso Optimized

    Oso Optimized Active Member

    Messages:
    259
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #4
    And you are sure these are pages that need to be indexed? Certain plugins will add the tag automatically to pages that don't need to be indexed.
     
    Oso Optimized, Oct 15, 2022 IP
    cronik, qwikad.com and afridy like this.
  5. afridy

    afridy Well-Known Member

    Messages:
    810
    Likes Received:
    116
    Best Answers:
    0
    Trophy Points:
    135
    #5
    @ose Optimized, Thank you. i removed all the tags and now the site map looks clean and all the 404s have gone.
    Thank you for the very valuable tip.
     
    afridy, Oct 16, 2022 IP
    cronik, Oso Optimized and qwikad.com like this.