WordPress.org

Forums

remove meta robots tag from wp_head (1 post)

  1. Elvis Morales
    Member
    Posted 1 year ago #

    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');}

Topic Closed

This topic has been closed to new replies.

About this Topic