fcurella / django-social-share

templatetags for 'tweet this' and 'share on facebook'
MIT License
222 stars 72 forks source link

link_class tag, how to show icons instead of the text #58

Open iago84 opened 3 years ago

iago84 commented 3 years ago

i think my question is clear on the title

how?...for example...use a fontawesome class for FB

{% post_to_facebook %}

how to leave empty the link text and how declare the link class

EXTRA: i saw some people on forums...that used this..didnt understand..or maybe me...that should not be an instance of an object...how it worked for me.. was only indicating like on your example..object_or_url jst like a plain parameter:

{% post_to_facebook object_or_url "Post to Facebook!" %}

what i get bout this its object_or_url parameter..will use it self..the object for sharing...

or maybe im wrong and should mark object.get_absolute_url???

fcurella commented 3 years ago

You could override the Facebook template to generate the HTML you want.

iago84 commented 3 years ago

ah i see now....perfect...thanks...cuz i thought the template was for the modus operandi of the post in it self