Support » Fixing WordPress » remove meta robots tag from wp_head

  • How to remove <meta name=robots content=”noindex,follow”/> from wp_head?

    I am in need to remove just this line from wp_head but can’t find the right hook to use it with remove_action().

    Basically what I want to achieve is to remove just this line from the header but just for the search page. So in this case i would use something similar to:

    if(is_search()){remove_action('wp_head','whatever-the-action-name-is');}

  • The topic ‘remove meta robots tag from wp_head’ is closed to new replies.