• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Nile Flores Media

Helping You Rock Out Your Website Like A Rockstar

  • Home
  • About
  • Blog
  • Portfolio
  • Hire Me
  • Resources
  • Contact
  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design
  • News
  • Podcast
You are here: Home ยป Web Design ยป Styling Your Facebook Fan box

Styling Your Facebook Fan box

By Nile Flores 19 Comments


Sometimes when you get an outside service and apply it to your site, you are unsatisfied on how it looks and perhaps want to alter it – like the Facebook fan box. It really is not too much of a big deal, but for those who like to put a little more effort and get rid of outside branding on their site, this tutorial should help.

Really, all it is is copying the code, replacing areas of the code for your fan page, and then copying the css to your layout’s style sheet.

This is a short tutorial on how to make your Facebook fan box go from this:

To This:

However, the code here is a bit different from my stylesheet, so if you have a site with similar colors like mine, you are welcome to take a look at my site’s stylesheet for reference.

1. you need the Facebook fan box code. It does matter which code as well… whether it is the older code without the iframe, or the new one that includes the iframe

<script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US"></script>
<script type="text/javascript">FB.init("b9786c0131cf453efe57a93566925d73");</script>
<fb:fan profile_id="95262735892" stream="0" connections="10" logobar="1" width="300" height="200":></fb:fan>
<div style="font-size:8px; padding-left:10px">
<a href="http://www.facebook.com/pages/Nile-Flores/95262735892">Nile Flores</a> on Facebook</div>

2. Replace the fan profile_id=”95262735892″ with your own page’s number. In the case you have a username for your page, you can get that id from your page’s settings. When you click “Edit Page” the URL will have your site’s ID at the end in your browser.

Example:

3. In your code, you will see logobar=”1″. Change the number to 0.

4. In your Facebook code on the same line as the height and width, add css=”YOURSTYLESHEETURLHERE?1″ .
In the YOURSTYLESHEETURLHERE, put the URL to either your stylesheet of your theme or layout.

5. Apply the following CSS to your stylesheet, no matter if you are using WordPress, another CMS, or straight HTML. You can alter the code to fit your site’s colors.

/* Start Facebook Fan Box CSS */
/* Main Part of Widget */
.fan_box a:hover{
text-decoration: none;
}
/* Fan box header */
fan_box .full_widget{
height: 200px;
border: 0 !important;
background: none !important;
position: relative;
}
/* Header */
.fan_box .connect_top{
background: none !important;
padding: 0 !important;
}
.fan_box .profileimage, .fan_box .name_block{
display: none;
}
.fan_box .connect_action{
padding: 0 !important;
}
/* Fan Connections */
.fan_box .connections{
padding: 0 !important;
border: 0 !important;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #666;
}
span.total{
color: #FF6600;
font-weight: bold;
}
.fan_box .connections .connections_grid {
padding-top: 10px !important;
}
.fan_box .connections_grid .grid_item{
padding: 0 10px 10px 0 !important;
}
.fan_box .connections_grid .grid_item .name{
font-family: "lucida grande",tahoma,verdana,arial,sans-serif;
font-weight: normal;
color: #666 !important;
padding-top: 1px !important;
}
/* Like Button */
.fan_box .connect_widget{
position: absolute;
bottom: 0;
right: 10px;
margin: 0 !important;
}
.fan_box .connect_widget .connect_widget_interactive_area {
margin: 0 !important;
}
.fan_box .connect_widget td.connect_widget_vertical_center {
padding: 0 !important;
}

It really not much of a customization, but with some alterations to the CSS, you could probably do quite a lot.


Filed Under: Web Design Tagged With: facebook, Tutorials, web design

About Nile Flores

Nile is a 43-year old female from the greater St. Louis (Southern Illinois side) area. Nile is a mother of 1 son. She is also a web designer and developer, a graphic designer, and a public speaker, who exclusively designs and develops using WordPress. She also blogs at GoDaddy's Blog, Verpex Hosting's blog and her very personal sites, Pixelled and Nail Polish Happy.




Related posts:

No related posts.

Reader Interactions

Comments

  1. Jorgen Sundberg says

    June 21, 2010 at 5:29 pm

    The pink works well for your site Nile, well done.
    My recent post Why You Should Rearrange Your LinkedIn Profile Sections

    Reply
    • Nile Flores says

      June 22, 2010 at 1:01 am

      Thanks… thought it would be a nice thing to try on the site.

      Reply
      • Bruker says

        October 1, 2011 at 3:10 am

        will it change only in pink color or it has another color options also? Because i feel its so girly and don’t like pink ๐Ÿ™‚

        Reply
  2. Space Shooter says

    July 3, 2010 at 9:10 am

    Heh, I did not know that it is even possible to customize. I'm using a plugin to display the box in a widget area, but I'm gonna change that thanks to this post, and customize it too.
    Thx for sharing!

    Reply
    • Nile says

      July 3, 2010 at 2:14 pm

      It would be nice to have a plugin that did that for the FB fan box. Good luck with customizing yours. ๐Ÿ™‚

      Reply
  3. Marcie says

    August 14, 2010 at 10:39 pm

    You know i'll be reaching out to you for this service, right?
    My recent post Community School Resource Coordinator Position

    Reply
  4. Alex says

    November 17, 2010 at 10:35 am

    What purpose does the ?1 serve at the end of the css url?

    Reply
    • Erha says

      December 24, 2010 at 5:00 am

      Sometimes it's not that easy to see results of changes in css, especialy when you do it more than once. This number in url is walkaround, you need to change it to any other digit each time you want to refresh site.

      Reply
  5. Meesho says

    January 28, 2011 at 8:33 pm

    Hi Nile, I think your tutorial is the best. but i still wondering is legal to customize it?!, coz last week I've been here and there searching for styling fanbox and I read on the official FB forum that they're trying to makr it hard to be stylied! because they want it to look identical to fb!. What do you think?. I don't want to take the risk and start running after every update. is that what really happen? updating is regularly and annoying?.
    Thanks

    Reply
    • Nile says

      January 29, 2011 at 12:48 am

      It is legal too customize it. Until the code is no longer working on my site to be able to customize it, I keep on doing that. I even customize it on some of my clients sites too. Instead of using the iframe source code they currently give out, I use the older one. ๐Ÿ™‚

      Facebook has a lot of things they have to think about and I am not sure if some of the things they are doing in regards to removing certain features are to gear up for being able to create premium users, or for security issues on their part (Yahoo! did this a long time ago when myself and 2 other guys figured out how to put colors in our Yahoo member profiles and Yahoo! Clubs – remember, it was clubs before Yahoo Groups before 2001- by some harmless code hacking.)

      Reply
  6. Carla says

    February 15, 2011 at 8:49 am

    Great tutorial! Thank you for sharing this. I was thinking about this but i do not believe is so simple. I will try it!

    Reply
  7. Rinda says

    March 20, 2011 at 7:04 pm

    i had tries to my blogger,that works!!
    thx so much nile,lov u ^^v

    Reply
  8. Svetlana says

    May 8, 2011 at 10:13 pm

    I couldn't figure out why my CSS changes were not showing up, so thank you so much for the hint with ?1 in CSS link – worked perfect!

    Reply
  9. ashish patel says

    August 6, 2011 at 5:10 pm

    great tutorial. i've recently customised my fan box…
    My recent post Rosalind Cyber Attacked Ewen Chia

    Reply
  10. MundoCaco says

    September 15, 2011 at 6:20 am

    Thanks! ๐Ÿ˜€
    My recent post ¿También quieres un iPhone?

    Reply
  11. Jim M says

    December 27, 2011 at 4:03 pm

    Nile, nice work. Do you if this CSS fix works with the Likebox as well?

    Reply
  12. Carla McNeil, Social Media Manager says

    January 13, 2012 at 12:02 am

    SAWEET!! I’m definitely going to do this one. Branding is so important.

    The extra added bonus, it can make you look smarter than you really are”, because now I am going to have this and all I had to do was copy your directions.

    A Great Big Thanks!

    Reply
  13. Goran says

    October 25, 2012 at 4:26 am

    Looks awesome. Thanks for share

    Reply

Trackbacks

  1. JackNguyenCom (JackNguyen.Com) says:
    September 9, 2010 at 12:03 am

    Twitter Comment


    RT @blondishnet: Styling Your Facebook Fan box [link to post]

    – Posted using Chat Catcher

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow Me On:

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!




Try to be More Positive on Social Media

Note: You can click on image and view the video in a larger lightbox window.

Footer

The Blog

Lots of free information, tutorials, and more to help you bring your best foot forward with your website.

  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!

Copyright © 2025 · · WordPress