Change the meta robots WP

2

Colleagues.

I took a project that was developed in WP. Unfortunately I do not know how to play WP, but I would like to change the line:

<meta name='robots' content='noindex,nofollow' />

Inside the header.php file has the line:

wp_head();

I realized that the goal is inside of it, but when I looked in functions.php, I did not find this function.

It has the theme itself and the version is 3.3.2. I know it's an old version, but in March we're planning to switch sites.

    
asked by anonymous 15.01.2017 / 20:04

1 answer

2

In WP references you have the following functions:

See that the second link has this:

add_action( 'wp_head', 'noindex' );

So if that adds, to remove I think it's something like:

remove_action('wp_head', 'noindex');

And if you want to add your custom <meta> , it should be something like:

function metaindexexemplo() {
     //Escreva seu meta customizado aqui
     echo '<meta ....>';
}

add_action('wp_head', 'metaindexexemplo');

Here is a related answer that explains well:

15.01.2017 / 21:28