Live Chat Software by Kayako |
Knowledgebase
|
Adding the Google +1 Button to XSitePro
Posted by Ben Fleeson on 31 January 2012 11:45 AM
|
|
|
The Google +1 button has two pieces of javascript that need to be added in two separate locations. The first piece looks like this: <script type="text/javascript"> window.___gcfg = {lang: 'en-GB'}; (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> This piece of script needs to be placed in the 'Other' tab > Global Scripts > 'In the Head Section of the page' section. The second script looks like this (notice that I have added the nodesigner tags already): <nodesigner><g:plusone></g:plusone></nodesigner>
This script needs to be added on the web page where you want the +1 button to appear. These sections of code need to be done in the source view mode. | |
|
|
|
Comments (0)
