cornflourblue / jw-angular-social-buttons

Angular Social Sharing Buttons
MIT License
17 stars 16 forks source link

Remove the Like button from Facebook buttons #4

Open spimou opened 5 years ago

spimou commented 5 years ago

I am using your component with angular 6 . I have no problem, but I went to fb-like.component.js and changed the template to template: "<div class=\"fb-like\" [attr.data-href]=\"url\" data-layout=\"button\" data-action=\"like\" data-show-faces=\"false\" data-share=\"true\"></div>", so I just get a simple Like and Share Button.

How can I remove the Like button? I tried with CSS, doing display:none, but it does not work.

Thanks

FiringBlanks commented 5 years ago

You're trying to just display the Share button?

ElfatniAnass commented 3 years ago

just change the class name form "fb-like" to "fb-share-button"

<div class="fb-like" [attr.data-href]="url" data-layout="button" data-size="large" data-share="true"></div> to

<div class="fb-share-button" [attr.data-href]="url" data-layout="button" data-size="large" data-share="true"></div>