Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Can you please add the support of FontAwesome icons set to the 7.x version
Comment | File | Size | Author |
---|---|---|---|
#2 | sociel_media_links.patch | 2.54 KB | Tobias März |
Comments
Comment #2
Tobias März CreditAttribution: Tobias März as a volunteer commentedProvided patch for fontawesome support.
Hopefully it is correct (my first patch).
Comment #3
JoachimA CreditAttribution: JoachimA commentedHi !
Seems great but could you give some directions on how to use it ?
Comment #4
Tobias März CreditAttribution: Tobias März as a volunteer commentedHi!
I've added a checkbox in Appearance fieldset called "Use fontawesome".
If checked it uses
<i>
instead of<img>
.fontawesome font should be added to theme manually.
Comment #5
cbeier CreditAttribution: cbeier commentedThe implementation of a plugin system (like in D8) and the possibility to integrate Font Awesome are on my todo list.
But this is a large rewrite of many components in the module. So I can not say, if and when I have the rewrite finished. With the rewrite (independently of Font Awesome) the module should support not only "img"-icons, but also css and any other markup structure for the icon output.
Comment #6
JoachimA CreditAttribution: JoachimA commentedThis patch works great !
Thanks !
Comment #7
sinasalek CreditAttribution: sinasalek commentedMore generic solution is provided here #2728393: New iconset callback for more flexibility (icon callback)
Comment #8
SKAUGHTreviewed. patch does seem works nicely. +1
Comment #9
SKAUGHTComment #10
cbeier CreditAttribution: cbeier commentedIconset can only be implemented as Iconset and via the hook system. Otherwise we have in future many checkboxes in the settings form. And for user it will not be clear what exactly happens.
Comment #11
cbeier CreditAttribution: cbeier commentedComment #12
cbeier CreditAttribution: cbeier commentedAfter implemented the patch from #2728393: New iconset callback for more flexibility (icon callback) we can write a new patch and can try to implement FontAwesome as a additional Iconset.
Comment #13
heyyo CreditAttribution: heyyo commentedyoutube_channel id should be just youtube, there is not such icon name in fontawesome.
Comment #14
Full Trucker CreditAttribution: Full Trucker as a volunteer commentedFor anyone perusing this thread that wants to add the Font Awesome 5 iconset to this module, here's what I did and it works a treat:
(obviously)
(hat tip to sinasalek on getting the integration started)