Use Google+1 Button as lock ,unlock Button for WordPress

By | October 13, 2013

Login and Share to get Free Bitcoins

For every visitor from share you will earn Bitcoin/Satoshi

Sponsor Ads


Use Google+1 Button as content locker for WordPress article

You have probably seen many sites running promotions where you can unlock license or download software after liking them on Facebook or Google +1.

The +1 button has a convenient JavaScript callback that could be used for all sorts of fun things, Such as hiding content on a page.There is no need to buy plugins like WPFacePages, Google Plus to Download.

First you need to put the button markup to your page, as well as the content you wish to be hidden. The content will be hidden till the user click the +1button.

Follow the steps:

Steps1: Install the Hana code plugin check here.

Steps2: Open the Hana code settings Configuration for Hana Code Insert.

 Step3: Create the new entry name plus1.

Step4: Add the following code to next box

<script type="text/javascript" src=""></script><script type="text/javascript" src=""></script>

<script type="text/javascript" src="">// <![CDATA[

// ]]></script>
<script type="text/javascript">// <![CDATA[
 function plusone_callback(response) {
 if (response.state == 'on') {
// ]]></script></pre>
<div id="plusonebutton"><span style="color: #3366ff;"><strong>UnLock Google+1 for
<div id="plusonecontent" style="display: none;">

Step5: Create new entry name closeplus1.


Step6: Now to lock your post content insert {{ plus1}}

Step7: Then add the information which you want to lock.

Step8: After inserting the content then close {{closeplus1}}

The visitor will be able to see the information only when Google +1 button is clicked.


2012 Happy new year

no ads