Hi,
I’d like to add my own meta tags to the theme:
<meta name=”bingbot” content=”NOODP NOARCHIVE,”>
<meta name=”ROBOTS” content=”NOARCHIVE, NOODP, NOYDIR”>
<meta name=”“GOOGLEBOT“” content=”NOARCHIVE, NOODP”>
I can do that only in a child-theme in the header file. Is there a possibility to add the tags in the theme settings? If not, that would be a great featrure. Google and Co would not cache the pages again (DSGVO)
Thanks
Uli
Hey HypnosisPraxis,
Please try adding this code to the end of your functions.php file in Appearance > Editor:
function add_custom_meta(){
?>
<meta name='bingbot' content='NOODP NOARCHIVE,'>
<meta name='ROBOTS' content='NOARCHIVE, NOODP, NOYDIR'>
<meta name='GOOGLEBOT' content='NOARCHIVE, NOODP'>
<?php
}
add_action('wp_head', 'add_custom_meta');
Best regards,
Mike
Thanks :)
Hi,
I’m glad you were able to get this addressed. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon