Google +1 Button

By bcammobcammo


This snippet will add the official Google +1 button to your Wikidot page. This allows visitors to +1 a page you specify.


The snippet uses the following attributes; only the URL attribute is required (all others are optional).

Attribute Required Allowed values Default value Description
url yes any valid URL, including %%link%% The URL of the page you want to plus one.
size no small, medium, standard, tall standard The size of the +1 button.
count no true, false true Controls whether or not to display the count of plus ones. The count will always be shown when using size=tall.


You can add the +1 button to your page with the following code:

[[include :snippets:plusone-button

You can also use the button in a live template. Such a use might use the code below.
[[include :snippets:plusone-button

In action

Thanks to tsangk for this great snippet: conditional-blocks

text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]

Other snippets posted by bcammo

Chatbox - 26 Mar 2012 11:07
Tweet Button - 16 Feb 2012 01:49

Rate this solution

If you think this solution is useful — rate it up!

rating: +10+x
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License