Skip to content

Instantly share code, notes, and snippets.

@abrudtkuhl
Created August 8, 2012 18:05
Show Gist options
  • Save abrudtkuhl/3297121 to your computer and use it in GitHub Desktop.
Save abrudtkuhl/3297121 to your computer and use it in GitHub Desktop.
WordPress comments.php for Responsive Facebook Comments
<div class="fb-comments"data-href="<?php the_permalink(); ?>" data-num-posts="2" mobile="false"></div>
/* facebook comments */
.fb-comments, .fb-comments iframe[style], .fb-like-box, .fb-like-box iframe[style] {width: 100% !important;}
.fb-comments span, .fb-comments iframe span[style], .fb-like-box span, .fb-like-box iframe span[style] {width: 100% !important;}
@joeguilmette
Copy link

Bummer, it seems that Facebook altered their plugin? This doesn't work for me, and it looks like they're using some sneaky JS to prevent changing width on at least one of the divs...

Does this still work for you?

@andreiluca
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment