Reputation: 35
I just want to use the like button and not show any comment popup. How can I do this?
Thanks.
Upvotes: 3
Views: 5045
Reputation: 76
just add this style to the style="overflow: hidden !important;" to the div like i have done below
<div class="fb-like pull-right" data-href="http://thegoldbook.in/demo/singlequestion.php?ques_no='.$ques_id.'" data-width="100" data-layout="button" data-action="like" data-show-faces="false" data-share="true" style="overflow: hidden !important;"></div>
Upvotes: 0
Reputation: 1
<style>
#fb-container {
height: 20px !important;
width: 93px !important;
overflow: hidden !important;
}
</style>
<div id="fb-container">
<div id="fb-root">
<div class="fb-like" data-href="https://www.facebook.com/youraddr" data-layout="button_count" data-width="100" data-show-faces="false" data-share="false">
</div>
</div>
</div>
Upvotes: 0
Reputation: 14135
.fb_edge_widget_with_comment iframe { height: 20px !important; overflow: hidden; }
Upvotes: 0
Reputation: 1256
I didn't have success with the above approach. What worked for me was to create a container element with the exact dimensions of the facebook like button and set overflow="hidden"
to the container. This worked perfectly for me.
Upvotes: 1
Reputation: 31870
Yes, you can do it with a little but of css to hide the DOM element that Facebook adds.
.fb_edge_widget_with_comment span.fb_edge_comment_widget {
display: none !important;}
Upvotes: 2