PDA

View Full Version : Verifying Google via WordPress and PHP


Moogs
2012-09-13, 21:38
So I'm stumped on what is probably an easy solution.

Trying to verify my Google+ Page, part of which is linking the web site to the page and using a bit of their code.

The code looks like this

<a href="https://plus.google.com/1234567890" rel="publisher">Find us on Google+</a>

The instruction they give (which is clearly not for PHP sites) looks like this:

"Copy and paste the code snippet provided to the <head> of your website and click the Test website button."

So I go to my WP Editor, open the header.php file (nearest thing I can figure). But I realize right away this won't work because all the tags in the <head> area look like this:

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

So I got all clever and tried to extrapolate and did this, to no avail.

<link href="https://plus.google.com/1234567890" rel="publisher" />

Help a brother out... I can't find a single thing in Google's useless help how to make this work with PHP.


ALSO

I thought maybe I was wrong about the header.php, but going to the various content pages (where one might see a visible href), none of those files have <head> tags AFAICT.