Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook like button: hide text

I just added a Facebook like button to my website, just the most basic one, but you can't select to hide the "Sign Up to see what your friends like." text.

Because the area for the button is so small, I don't want this text, as it overlaps with other text next to it.

Is there a way to hide this part? I basically just want the like button, with the same functionality.

like image 928
woutr_be Avatar asked Apr 05 '12 04:04

woutr_be


2 Answers

You would have probably figured it out by now but for others who haven't and reach this question, try data-layout="button_count".

You can play around here for more options: https://developers.facebook.com/docs/reference/plugins/like/

like image 63
pjsr Avatar answered Nov 06 '22 04:11

pjsr


You can add layout="simple" (XFBML), or "data-layout"="simple" for HTML5 to the tag.

That'll show just a like button, with no count, faces or nonsense :)

like image 34
Tom Waddington Avatar answered Nov 06 '22 02:11

Tom Waddington