• Resolved deray

    (@deray)


    I need to copy/paste a Google verification meta tag into my home page. The example they give shows HTML with Head and Body and instructs it be inserted in head before body. On the php page in the editor the closest thing to Head is cfct_header(); and when I insert the code there, Google can’t find it. Where do I put it so Google can verify my site?

Viewing 2 replies - 1 through 2 (of 2 total)
  • skylar_inmotion

    (@skylar_inmotion)

    The cfct_header() function probably includes both the <head> and <body> tags. If you add the code before that function it’ll be too soon, add it after and it’ll come too late. You might have to find the function cfct_header() itself, either within your header.php file or maybe in functions.php, and add the code within the function temporarily.

    Thread Starter deray

    (@deray)

    Thanks Skylar, but by the time you got back I had resolved it like this:
    In the theme editor, I opened the header-default.php template NOT the header.php. then about 3/4 down the page I entered it here:
    <?php
    wp_head();
    ?>
    <meta name=”google-site-verification”
    </head>
    and now everything is wonderful. Thanks for your help though. I think the problem came from the weird layout of the theme I am using, Underwater 2.1. Maybe you can share this with someone else if you run into it again.Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Inserting Google HTML tag into php code’ is closed to new replies.