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.
Using the Snippet tool or the Info Bar or side panels is popular.

The XSitePro Snippets feature is popular for adding code like this.
You can find the manual section on the XSitePro Snippets Tool here:
http://www.xsitepro.com/help/snippets_xsitepro_website_design.htm

(2 vote(s))
This article was helpful
This article was not helpful

Comments (0)
INTELLIMON Helpdesk - Professional Website Design Software Knowledgebase