Thursday, 3 January 2013

Add a Facebook Like Box without the Branding

Learn how to customize the layout of the Facebook Like Box with simple CSS styles. You can even remove the Facebook branding from the Like Plugin.
The Facebook Like box placed on your website /blog is probably the easiest way to attract new fans to your Facebook page.
And the same rectangular box can even help convert casual visitors to your site into regular ones. That’s because the photo pile inside the box will show visitors pictures of their friends who are already fans and when they seen a known face, it could increase their relative interest in your site.

Customize the Facebook Like Box with CSS

Facebook offers a simple Like Box plugin that you can easily integrate into your website using either JavaScript or IFRAME. You can customize the border color, the height and the width of the Like Box but, officially, nothing more.
That said, if you would like to add a background color to the Like Box to better match your site’s color theme or if you would like to completely remove the Facebook logo and other branding from the box to make it less crowded , you can easily do that with the help of CSS.
To get started, copy the code below and paste it anywhere inside your website template. Change the URL in Line19 to point to your own Facebook page and you’re done.

<style type="text/css">
.facebookOuter {
background-color:#F4F4F4;
width:250px;
padding:10px 0 10px 10px;
height:250px;
border:1px solid #CCCCCC;
}
.facebookInner {
height:250px;
overflow:hidden;
}
</style>

<div class="facebookOuter">
<div class="facebookInner">
<div class="fb-like-box"
data-width="245" data-height="290"
data-href="http://www.facebook.com/SahiSoft"
data-border-color="#F4F4F4" data-show-faces="true"
data-stream="false" data-header="false">
</div>
</div>
</div>

<div id="fb-root"></div>

<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>

Now the boring technical stuff.
The default background color of our Facebook Like box is #F4F4F4 but you can use any other web color (change values in Line 03 and Line 20). Similarly, if you want to have a more wider or taller Like box for your website, you can need to change the width and height values defined in lines 4, 6, 10 and 18.
The above example uses the JavaScript version of the Facebook Like box though the same can be applied to the IFRAME version as well. In that case, you need to replace Line # 17-21 with the IFRAME tag
 This Widget is provided by SAHI SOFT

1 comment:

  1. Try simple games and check how your internet connection is and then move on play more games.
    It combines RPG elements and strategy for a very interesting game where you must stop the rows of pirates ship from making their way down
    the river. Preparing to apply to the dozens of
    other game development companies for video game jobs will
    enable you to expand and diversify your list of possible employers, and your chances of getting hired will increase tremendously.



    my web page: criminal attorneys ()

    ReplyDelete

Contact Us

Name

Email *

Message *