How to Add Google Badge
-
I have tried everything to add a google+ badge to link directly to my google+ Brand page. I’ve tried copying and pasting code into the “text” widget as instructed by many on the internet. The other suggestion was to paste the following code:
into the first line of code on the sites homepage. I don’t know how to do that and not sure if it’s at all possible.
Any assistance you could provide would be great
-
Hi there,
Depending on what code you’re trying to paste in, putting your Google+ link in the text widget on your sidebar should work just fine! There are some kinds of code which are not allowed in our system however, so if it contained any of the “disallowed” code which is mentioned in the article I’ve linked to below, that might be why:
-
Hi there,
I saw that you wrote in again regarding this issue. Was there something else which I can help with?
-
-
OK, could you provide the code which you got from Google+ so that we can see where the problem is? You should be able to paste it in here.
-
Thanks, I used
<script type=”text/javascript” src=”https://apis.google.com/js/plusone.js”></script>
<g:plus href=”https://plus.google.com/{profileId}” rel=”author”></g:plus>and also tried
<!– Place this tag where you want the badge to render. –>
<div class=”g-plus” data-href=”//plus.google.com/105587193883951641602″ data-rel=”publisher”></div><!– Place this tag after the last badge tag. –>
<script type=”text/javascript”>
(function() {
var po = document.createElement(‘script’); po.type = ‘text/javascript’; po.async = true;
po.src = ‘https://apis.google.com/js/plusone.js’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(po, s);
})();
</script>neither worked
-
Hiya,
Our system is programmed to not allow any sort of Javascript to be added to a page. While this javascript is probably harmless, it is very easy for javascript to be used in a malicious way and so we do not allow it at all.
If you would like to link people to your Google+ page and have it be a graphical button, you will need to go online to find a button which you like, save it to your Media Library, and then create an image link directly linking them to your Google+ account. There is a good starter page on how to create image links right here:
- The topic ‘How to Add Google Badge’ is closed to new replies.