Jump to content

Google+ "Link Your Website" What am I doing wrong?


Recommended Posts

I'm trying to add this line of code

 

<a href="https://plus.google.com/104328529185127622793" rel="publisher">Google+</a>

 

to the header of my website. I used my FTP client to edit the header.tpl in

 

ROOT/public_html/themes/dilecta[mytheme]/header.tpl

 

I added it right under the <head> tag, and when I open my website now to the homepage (www.DFWcomposites.com) I actually see a "Google+" text at the very top....However when I tell google to test whether or not the code was integrated, it returns with an error! Can someone tell me what I'm doing wrong?

 

This is what google asked me to do:

 

"By adding a short line of code to http://www.dfwcomposites.com, you can make your Google+ page eligible to show up on the right hand side of the Google search page for relevant queries and make your Google+ page more discoverable. Learn more

Ask your site's webmaster to add the following line of code to your site's homepage:"

 

 

Thanks!

Chetan

Link to comment
Share on other sites

it's normal, you added anchor (url/link) to the header, so it appear on each page. (header is a most important part of website and it appears ALWAYS)

 

for what purposes you want to add this anchor? If you want to put some kind of advertise, you can use many other ways to display it. for example - google plus badges, it looks much better: http://www.prestashop.com/forums/topic/263467-prestashop-and-google-profile-badge-free-tutorial/page__p__1313887?do=findComment&comment=1313887

  • Like 1
Link to comment
Share on other sites

It's not for advertising on my website, it's to prove to google that the person running my "DFWcomposites" google+ page actually has authority over the website DFWcomposites.com

 

 

....at least I think that's why they're asking me to do it? I feel like this should be a pretty common problem so I was very surprised to turn up clueless after about 20 minutes of searching. Is the header.tpl I'm adding this to the correct one, or is there maybe on in another path? I feel like it's the correct one since I see the google+ test at the top of my website right now.

Link to comment
Share on other sites

btw. i checked page that you mentioned (googls know how)

you have to put there this:

<link href="https://plus.google.com/{+PageId}" rel="publisher" />

not this:

<a href="https://plus.google.com/104328529185127622793" rel="publisher">Google+</a>

 

 

it's a huge difference ;) believe me, <link> doesnt add any visible content :)

this is the way!

Link to comment
Share on other sites

Hmmm, tried that line of code out (with "{+pageID}" replaced with that appropriate number) and I'm still getting

 

"Check that the line of code was added to your site's homepage and that the modified homepage is live on your site. Then try testing again."

 

Attached an image of what it's asking me to do. thanks for the help so far brotha

post-642852-0-04559800-1374791240_thumb.jpg

Link to comment
Share on other sites

  • 1 month later...

I think I eventually just installed and activated the google analytics module that comes as a default installed module and that took care of the situation. webmaster tools and google analytics recognized me gaccount as being the owner of the website once I configured those things

 

Chetan

Link to comment
Share on other sites

  • 11 months later...

I just successfully added the link. I had the opposite problem actually. Google wouldn't recognize my Analytics and Webmaster Tools acct, so I had to do it the hard way. Follow DFWcomposites original instructions and you shouldn't have any problems. The purpose of linking your Google+ page to your website is supposedly to create better SEO as well during user searches. We'll see how that works out.

Link to comment
Share on other sites

  • 3 weeks later...

Success with edit file web_root/themes/default-bootstrap/header.tpl then add <link href="https://plus.google.com/113449700822102158552" rel="publisher" /> inside <head> ... </head> then I just use one language on admin page (disable another language), so when hit "www.elektrikmart.com" url on browser your landing url should "www.elektrikmart.com" not "www.elektrikmart.com/en". 

 

I'm using Prestashop 1.6.x, by default Prestashop use English language, when you add another language your url will looks like "www.elektrikmart.com/en" or "www.elektrikmart.com/id" that redirection page will confusing google plus for verifying your Prestashop site.

 

Hope it help.

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...