Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1161143

    http://www.airlinestaffrates.com/
    Hi,
    Where do I add this code:
    <html>
    <head>
    <meta name=”google-site-verification” content=”L_W-R4ZoDJoupzK4yYXZ2yM0C8mpEOvpjiUJYkCnDC8″ />
    <title> My title </title>
    </head>
    <body>
    page contents
    </body>
    </html>

    Thanks
    Charlotte

    #1161605

    Hey Charlotte,

    Please try this in your functions.php file:

    function google_site_verification(){
    ?>
    <meta name=”google-site-verification” content=”L_W-R4ZoDJoupzK4yYXZ2yM0C8mpEOvpjiUJYkCnDC8″ />
    <?php
    }
    add_action('wp_head', 'google_site_verification');

    Best regards,
    Rikard

    #1161764

    Thanks Rikard,
    I have done that now but I get this from Google.
    Verification failed for https://www.airlinestaffrates.com/ using the Meta tag method (less than a minute ago). We couldn’t find the verification meta tag.
    What is wrong?

    Example from Google:
    <html>
    <head>
    <meta name=”google-site-verification” content=”-W4nYgSqaWrhPUWw6WTVccgXm-4qIuIoNYjm4giiCc8″ />
    <title> My title </title>
    </head>
    <body>
    page contents
    </body>
    </html>

    Best regards
    Charlotte

    #1161820

    Hi Charlotte :)

    Please try copying Rikard’s code from below

    function google_site_verification(){
    ?>
    <meta name="google-site-verification" content="L_W-R4ZoDJoupzK4yYXZ2yM0C8mpEOvpjiUJYkCnDC8" />
    <?php
    }
    add_action('wp_head', 'google_site_verification');

    I believe it might not haven taken affect because of double quotes. Please try once again :)

    Best regards,
    Yigit

    #1162462

    Thanks Yigit :)

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Google verification code’ is closed to new replies.