DFWcomposites Posted July 25, 2013 Share Posted July 25, 2013 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 More sharing options...
vekia Posted July 25, 2013 Share Posted July 25, 2013 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 1 Link to comment Share on other sites More sharing options...
DFWcomposites Posted July 25, 2013 Author Share Posted July 25, 2013 I have also ensured that my shop URL in the back-office matches the link that I supplied to me google plus page, both are set to dfwcomposites.com, as opposed to www.dfwcomposites.com not sure how much of a difference that makes though? Link to comment Share on other sites More sharing options...
vekia Posted July 25, 2013 Share Posted July 25, 2013 www.dfwcomposites.com redirect to non-www, so no worries. you have to use non-www addresses if you want to put urls somewhere. it's not necessary - but in this case is a good practice 1 Link to comment Share on other sites More sharing options...
DFWcomposites Posted July 25, 2013 Author Share Posted July 25, 2013 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 More sharing options...
vekia Posted July 25, 2013 Share Posted July 25, 2013 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 More sharing options...
DFWcomposites Posted July 25, 2013 Author Share Posted July 25, 2013 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 Link to comment Share on other sites More sharing options...
DFWcomposites Posted July 25, 2013 Author Share Posted July 25, 2013 This is what the code looks like now. Is that file path for the header correct?? Chetan Link to comment Share on other sites More sharing options...
div369 Posted September 5, 2013 Share Posted September 5, 2013 Anybody? Link to comment Share on other sites More sharing options...
DFWcomposites Posted September 5, 2013 Author Share Posted September 5, 2013 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 More sharing options...
NOSaint Posted August 7, 2014 Share Posted August 7, 2014 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 More sharing options...
busel7 Posted August 26, 2014 Share Posted August 26, 2014 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 More sharing options...
Loubradou Posted October 21, 2014 Share Posted October 21, 2014 Hi, i'm having the same issue on one of my client website, i tried to add the G+ link in the header.tpl like this: <a href="https://plus.google.com/mypageid" rel="publisher"></a> and like this <link href="https://plus.google.com/mypageid" rel="publisher" /> and both at the same time, but it didn't worked, what i am doing wrong ? Link to comment Share on other sites More sharing options...
JustykBH Posted October 28, 2014 Share Posted October 28, 2014 So you mean you want this on your above site, not in Google search returns, yes? I assume you do not mean the link at the top of the page which appears to be working correctly because when I click on it I'm taken to your Google+ Profile. Link to comment Share on other sites More sharing options...
Tung at RockPOS.com Posted January 12, 2015 Share Posted January 12, 2015 Is there any module to add this verifying code into the site? Thanks guys! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now