Forums

robot suppresion and wp_head() ? (5 posts)

  1. scienceisgreat
    Member
    Posted 2 years ago #

    I've noticed that my generated index.php page has the meta tag:
    <meta name='robots' content='noindex,nofollow' />.
    I don't want this on my index page, and I've been told to look at the header template. So I did, and couldn't find it.
    I did find, however, that if I removed the wp_head() function, that meta tag as well as other meta information (like that provided by "Add Meta Tags" plugin) vanishes. What does wp_head() do, and why is it adding the robots exclusion tag? How do I fix this?

  2. whooami
    Member
    Posted 2 years ago #

    wp_head is a "hook" Put it back, you need it.

    More on hooks: http://wphooks.flatearth.org/

    What you need to do is go into Opions >> Privacy and untick the box that says, "I would like to block search engines, but allow normal visitors".

    IF, for some reason changing that option doesnt remove the meta tag than you've got a plugin adding it.

  3. jwurster
    Member
    Posted 2 years ago #

    If you go into the Privacy options, you will see where to fix this.

  4. whooami
    Member
    Posted 2 years ago #

    didnt I say that? minus the typo.

  5. scienceisgreat
    Member
    Posted 2 years ago #

    Thanks guys! I thought I had tried that, but maybe I misread or forgot to save the update. I had left the hook there, because I thought it seemed important.

Topic Closed

This topic has been closed to new replies.

About this Topic