Where to place verification code on WP site?

7 replies
  • SEO
  • |
When pasting the code to verify to Google, where is it placed on a WP site? It says after the head and before body. On a regular html site I know where it's at but can't find the area on my WP site.
Thanks.
#code #place #site #verification
  • Profile picture of the author Builder154
    If you go under Appareance and then Editor, you can manually edit any of your files. So you probably just want to go to the Header file and add it in there.
    {{ DiscussionBoard.errors[6528009].message }}
  • Profile picture of the author neo087
    Originally Posted by katied772 View Post

    When pasting the code to verify to Google, where is it placed on a WP site? It says after the head and before body. On a regular html site I know where it's at but can't find the area on my WP site.
    Thanks.
    May I know why for you want to verify your site in Google? If you want to do this for adding sitemap of your site then You can do it easily by download the file that is provided by Google and Upload in your server.
    You can also placed the code in under appearance then Widget and in text.
    Or,
    Go to Appearance click editor, here you can placed your code.
    Thanks.
    {{ DiscussionBoard.errors[6528434].message }}
    • Profile picture of the author katied772
      Originally Posted by neo087 View Post

      May I know why for you want to verify your site in Google? If you want to do this for adding sitemap of your site then You can do it easily by download the file that is provided by Google and Upload in your server.
      You can also placed the code in under appearance then Widget and in text.
      Or,
      Go to Appearance click editor, here you can placed your code.
      Thanks.
      I want to do it so I can use the webmaster tools and analytics.
      Signature


      {{ DiscussionBoard.errors[6529332].message }}
  • Profile picture of the author katied772
    This is an example of where google webmaster tools says to place it but I can't find anything that looks like it under the appearance editor.

    <html>
    <head>
    <meta name="google-site-verification" content="_fnMuEoUAWosnqADFSdIov-e_-UnY9vFFB5oU8Fq6Sg" />
    <title> My title </title>
    </head>
    <body>
    page contents
    </body>
    </html>
    Signature


    {{ DiscussionBoard.errors[6529388].message }}
  • Profile picture of the author Builder154
    After you're in the editor, click on header.php. Then just do a search for <head

    You'll find it. It may have other stuff in the head tag, but you'll see it. Then just put the Google code after that.
    {{ DiscussionBoard.errors[6529900].message }}
  • Profile picture of the author Peter ONeill
    Use a plugin... it's easier.. in the plugin area search for yoast analytics. this plugin is good
    {{ DiscussionBoard.errors[6531915].message }}
  • Profile picture of the author UMS
    You don't need a plugin and you don't need to edit your WordPress files (in fact, I'd recommend you stay well clear of changing any WP configurations).

    Just save the HTML into a file and upload (via your cPanel file manager or FTP client) it to the folder where your WP site exists, eg:

    public_html/mysite
    {{ DiscussionBoard.errors[6531920].message }}

Trending Topics