Today we will learn how to add a face book like box by using javascript to Bloggers Blog. Social networking websites like Face book, Twitter and Google+ are providing the custom follow and like boxes which helps every blogger. Now social networks are one the most important part of blogging. Face book like box help you to extend your reach and connect to the audience by proving them a mean to join you on face book. It does not only help you to grow your community but traffic as well. If people like your content they will voluntary like your Face book page. Facebook like box allows your visitors to join you easily and they don't have to find you manually. Face book developers have made this thing very easy to integrate a Face book like box in to your Blog by adding a few lines of code in it. We have already covered in our previous article how you can add a Face book like/fan box to blogger blog using Iframe.. you can see live demo on sidebar of our blog.
1. First you need to go Face book Developer Page & Create your fan box by using your page user name and page id. (Get your Face book page user name & id URL by Visiting your Face book fan page.)
2. Set other parameters such as width, height and stream. The Preview on the right will update itself as you enter the changes.
3. Click on get code (you will get code look like screenshot below)
4. Go To Blogger Dashboard>> Template>>Edit HTML
5. Press CTRL+F and Find the Following code. “</body>”
6. and paste 1st code before/above </body>
7. finally click on save and you are done first step.
8. Go to your blogger layout and click on add a gadget and choose HTML/JavaScript
9. Paste 2nd code in text area.
10 write your Desired name in title section( If you hide face book like box Header while you creating this. if you no hide while you creating like box so your don’t need write gadget title.)
11. Finally click on save take new look of your blog..
For Further Help See Video Tutorial. Enjoy! Adding this widget is surely easy but still if you encountered any troubles just post your query below in comment box and I would love to reply back as soon as time allow thanks for reading our post. happy blogging..!!
<b:if cond='PUT_CONDITION_HERE'>
</b:if>
cond
attribute. Each (opening) <b:if>
tag need to be closed with a closing </b:if>
tag.</b:if>
tag when applying a conditional in your template.1. Index (list) pages
Index pages include homepage, labels page and yearly archive page.
<b:if cond='data:blog.pageType == "index"'>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
3. Post (item) Page Only
<b:if cond='data:blog.pageType == "item"'>
4. First Post
This is not a page, but a conditional for the first post.
<b:if cond='data:post.isFirstPost'>
5. Static Page
<b:if cond='data:blog.pageType == "static_page"'>
6. Archive Pages
<b:if cond='data:blog.pageType == "archive"'>
7. Specific Page/URL
<b:if cond='data:blog.url == "PUT_URL_HERE"'>
8. Post and Static Page
<b:if cond='data:blog.url == data:post.url'>
9. Label-Search Pages
<b:if cond='data:blog.searchLabel'>
To apply a conditional tag to a content, simply put the content between the opening <b:if cond……> and the closing </b:if>, like Below code.
<b:if cond='data:blog.pageType == "item"'>
Here is Your CONTENT
</b:if>
in the example above, the content or widget show only on post pages.. I am writing a few more examples as soon as time Allow.
</head>
<script type="text/javascript" src="http://w.sharethis.com/gallery/shareegg/shareegg.js"></script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "1cce35ce-6744-4bac-9fa5-8f17a67a6fa6", doNotHash: false, doNotCopy: false, hashAddressBar: false, onhover:false});</script>
<link rel="stylesheet" type="text/css" href="http://w.sharethis.com/gallery/shareegg/shareegg.css" media="screen" /></link>
</body>
<script type='text/javascript'>stlib.shareEgg.createEgg('shareThisShareHeart', ['googleplus','facebook','twitter','pinterest','linkedin','email','sharethis'], {title:'Happy Valentines Day!',url:'http://www.sharethis.com',theme:'shareheart'});</script>
</body>
<div style='position: fixed; bottom: 2%; left: 2%;'>
<div class='shareEgg' id='shareThisShareHeart'/>
</div>
<div id='shareThisShareHeart' class='shareEgg'></div>
july 2003 - Present
My skills include HTML, CSS, PHP ,MySQL,JavaScript,jQuery,Open source development, and Cyber security. I also have experience with SEO and online advertising.Office and records management, database administration, customer support, travel coordination.Microsoft productivity software (Word, Excel, etc),Windows...