Uli
Uli

Reputation: 2693

Facebook HTML5 activity feed custom css

Is there a way to add a custom css to the HTML5 Facebook activity plugin?

This is the code of it:

<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&appId=123456789";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-activity" data-width="300" data-height="300" data-header="true" data-recommendations="false"></div>

I'd love to show bigger images and change the color of the links. Thanks. Uli

Upvotes: 1

Views: 3299

Answers (1)

Jamie Dixon
Jamie Dixon

Reputation: 54011

Sure, you should just be able to hook into the classes that Facebook provides on the elements such as:

.fbWidgetTitle
{
 // Change styles on the title of the activity box
}

Use Firebug or whatever tool you have to check the source and see what you're able to hook into.

Upvotes: 1

Related Questions