Skip to content

Instantly share code, notes, and snippets.

@johnantoni
Created March 7, 2012 23:04
Show Gist options
  • Save johnantoni/1997008 to your computer and use it in GitHub Desktop.
Save johnantoni/1997008 to your computer and use it in GitHub Desktop.
Facebook like hack to hide the like count
.fb_like #fb
width: 48px
.fb_edge_widget_with_comment iframe
width: 48px !important
.fb_edge_comment_widget
&.fb_iframe_widget iframe
width: 401px !important
@bodomalo
Copy link

Hi

This whole thing is not working perfectly. Think FB has changed something with their button code again.
Also noscript function "clearclick" gives a Hijack Warning because of the visible content behind the button...

@dandv
Copy link

dandv commented Jun 29, 2015

This is no longer necessary - just use the "button" layout - https://developers.facebook.com/docs/plugins/like-button

Also, it's against the FB terms to obscure elements of the social plugins: https://developers.facebook.com/policy/, 13.4.

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