
Locking the entire page by some pop up probably the worst idea because this fails to showcase the importance of your content. That's why this locker is designed to lock a specific part of your page instead of the entire page. It can lock any part of your webpage and can be implemented infinite times on a single page. You can even change the appearance of this locker to your custom style.
Before you proceed to make any customization in your blogger template, it is recommended to backupyour blog in case something goes wrong.
- Go to 'Template' and click 'Edit HTML'.
- Make sure whether jQuery library is already included in your blog. If not, search for ( Ctrl + f )<head> and write down the following line just below <head>.
- Now search for (Ctrl + f ) </head> and paste the following code before </head>.
Customization Buttons
<link href='http://rawgit.com/menightfury/social-locker/master/style.css' rel='stylesheet'/> <script src='http://rawgit.com/menightfury/social-locker/master/script.js' type='text/javascript'/> <script type='text/javascript'> //<![CDATA[ jQuery(document).ready(function ($) { $('#default-usage .to-lock').sociallocker({ buttons: {order:["facebook-like","twitter-tweet","google-plus"]}, twitter: {url:"http://twitter.com/world4usin"}, facebook: {url:"https://www.facebook.com/world4us.in"}, google: {url:"https://plus.google.com/+world4usin"}, text: { header: "Like us To Unlock This Content", message: "This content is locked. Like us on Twitter, Facebook or Google plus to unlock it." }, locker: {close: false, timer: 0,}, theme: "secrets" }); }); //]]> </script>
<script src='http://code.jquery.com/jquery-1.10.2.min.js' type='text/javascript'/>
- "facebook-like"
- "facebook-share"
- "google-plus"
- "google-share"
- "twitter-tweet"
- "twitter-follow" and
- "linkedin-share"
You can apply any number of buttons for your site. You can even change the order of these buttons in theorder:[] option (index 8 of the code). Separate each button by a comma (,).
Remember, for every button you inserted, you have to supply a URL link of your social media page. However for similar types of buttons like "facebook-like" and "facebook-share" or "google-plus" and "google-share", only one link has to be provided. For instance, my facebook page url ishttps://www.facebook.com/world4us.in.nightfury which i can use for both "facebook-like" and "facebook-share" buttons (index 10, 11 and 12 of the code).
Text
This section consists of two sub-sections. These are "header" and "message"; "message" appears under the "header". You can modify the content of these two sub-sections of your own or you can leave these fields empty. Detailed description of "header" and "message" is depicted below (index 15 and 16 of the code).
- header
- message


Theme
- secrets
- dandyish
- flat
- glass
- starter





However the style is "starter" by default, i.e. you can even leave this field empty.
Additional Customization
Timer
A countdown timer will be displayed if you choose any integer value. For instance, if you want to close your social locker after 300secs, you can insert timer: 300 in your code. A 0 value of timer indicates infinite time (index 19 of the code).

Close
Change your code from close: false to close: true in order to display a close icon at the corner of your locker (index 19 of the code).
<article id="default-usage">
<div class="to-lock" style="display:none;">
-- Hidden Content Starts --
</div>
</article>
Credit
Happy Blogging
Free Social Content Locker for Blogger [FreeSV]
Reviewed by FreeSV
on
7:48:00 PM
Rating:
![Free Social Content Locker for Blogger [FreeSV]](http://2.bp.blogspot.com/-Re-b_7scofg/U6BHOqEP-zI/AAAAAAAAATc/qYoRM8yMx9k/s72-c/social-locker.jpg)
No comments: