Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #947282

    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

    #948253

    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

    #963617

    Thanks :)

    #963844

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Own Metatags’ is closed to new replies.