Skip to content

Instantly share code, notes, and snippets.

@abrudtkuhl
Created August 8, 2012 18:05
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • 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;}
@arnonate
Copy link

Thanks for this... it's always annoying to dig back to old projects when I want to remember how I did this.

@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