SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2008
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Verifying Google Webmaster code in Wordpress blog

    I need to contact Google that I have sorted my site out after some idiot hacked the site and lot of my pages have been deindexed. Anyway, how do I verify Google webmaster in Wordpress.

    Option 1


    Copy the meta tag listed below and paste it in your site's home page in the first <head> section of the page, before the first <body> section.

    Which file do I locate this in the Wordpress admin? I know its in the theme editor, but which file exactly?

    or

    Option 2

    you can upload the html file as verifcation. Again, which specific file would this be uploaded to?

    Thanks

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I generally go with option 2, this way you create a file called yoursecretidnumber.html (this should be available in your webmaster account) upload it to the root of the install and then follow whatever instructions google gives you.

    If you want to use option 1 instead, look in header.php.

  3. #3
    #titanic {float:none} silver trophy
    molona's Avatar
    Join Date
    Feb 2005
    Location
    from Madrid to Heaven
    Posts
    8,265
    Mentioned
    248 Post(s)
    Tagged
    1 Thread(s)
    Option 2 (which I think that's the easiest) You simply load the file with the name they suggest (a looooooong name) to your server, in the root folder (the one that has the very first page, most of the time called index.EXTENSIONHERE).

    The file doesn't need to have any code, it is the name of the file what's important (something similar to googl87676554ad8767s45.html) and that it exist what's important.

  4. #4
    SitePoint Enthusiast
    Join Date
    Jun 2008
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys. I will try the second option first.

  5. #5
    SitePoint Enthusiast
    Join Date
    Jun 2008
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am trying to go for option 2.

    Here is what I have done. I have chosen document root for the site in question. I am then goven various folders like cgi bin, images, scripts, wp admin, wp content, etc. Then there are files like .htaccess, indexforupdates, index php, etc.

    Which particular folder or file do I select to edit?

  6. #6
    #titanic {float:none} silver trophy
    molona's Avatar
    Join Date
    Feb 2005
    Location
    from Madrid to Heaven
    Posts
    8,265
    Mentioned
    248 Post(s)
    Tagged
    1 Thread(s)
    root folder is the one where you have a index.php file.

  7. #7
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by monton View Post
    I am trying to go for option 2.

    Here is what I have done. I have chosen document root for the site in question. I am then goven various folders like cgi bin, images, scripts, wp admin, wp content, etc. Then there are files like .htaccess, indexforupdates, index php, etc.

    Which particular folder or file do I select to edit?
    It goes in the same folder you mention above, along side the .htaccess file and the folders you mentioned.

  8. #8
    SitePoint Enthusiast
    Join Date
    Jun 2008
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But does anyone know the exact file it goes into. There are various foolders and files there, but obviously the html file Google provides only goes into one. I tries the index.php, but I am afraid it does not seem to verify there.

  9. #9
    #titanic {float:none} silver trophy
    molona's Avatar
    Join Date
    Feb 2005
    Location
    from Madrid to Heaven
    Posts
    8,265
    Mentioned
    248 Post(s)
    Tagged
    1 Thread(s)
    It doesn't go inside any file, it goes under your root folder.

    You simply create an empty file with the number google gave you and html extension and the number google gave you and upload it to your server, in the same folder where your index.php page is.

    Example: if you received the verification number google59adf595fdad59456df5da
    you would create an empty file named google59adf595fdad59456df5da.html

    Then log in to your google webmaster account, go to the right section and press "verify"

    That's about it.

  10. #10
    SitePoint Enthusiast
    Join Date
    Jun 2008
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by molona View Post
    It doesn't go inside any file, it goes under your root folder.

    You simply create an empty file with the number google gave you and html extension and the number google gave you and upload it to your server, in the same folder where your index.php page is.

    Example: if you received the verification number google59adf595fdad59456df5da
    you would create an empty file named google59adf595fdad59456df5da.html

    Then log in to your google webmaster account, go to the right section and press "verify"

    That's about it.
    Thanks buddy. It worked.

  11. #11
    #titanic {float:none} silver trophy
    molona's Avatar
    Join Date
    Feb 2005
    Location
    from Madrid to Heaven
    Posts
    8,265
    Mentioned
    248 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by monton View Post
    Thanks buddy. It worked.
    Anytime


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •