WordPress.org

Ready to get started?Download WordPress

Forums

remove meta robots tag from wp_head (1 post)

  1. elvismdev
    Member
    Posted 4 months 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');}

Reply

You must log in to post.

About this Topic