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.
Hi,
Any tips on how to integrate would be very welcome. A readme for installation and usage instructions ?
thanks..
Comments
Comment #1
RobLoachIt just adds the CSS, it's up to you to embed the classes....
Comment #2
sjk1000 CreditAttribution: sjk1000 commentedSee here for installing font awesome in Drupal without the module
http://redheadevelopment.com/blog/fontawesome-and-drupal
Go to Configuration > CKEditor > Full Profile Edit > Advanced Options and paste into the Custom JavaScript configuration box:
config.allowedContent = true;
(not forgetting the semi colon, probably)
Go to Configuration > Text Formats > “Full HTML” Configure.
Check the "Limit Allowed html tags" box, scroll to the bottom to Limit Allowed HTML Tags filter.
Add a `
<font-awesome>
` tag to the list or whatever tag you like - Using `<i>
` tags converts to italics hence why I’ve created a new tagWhen adding text in the wysiwyg you can now use
<font-awesome class=“fa fa-smile-o></font-awesome>
As I learned here h
ttp://www.hanselman.com/blog/WhyDoMyFontAwesomeIconsShowUpAsBlankSquares.aspx
you need both the “fa" and the reference to the icon in the class name henceclass=“fa fa-smile-o>"
Hope this helps
Comment #3
techgirlgeek CreditAttribution: techgirlgeek commentedFYI - the class, icon-twitter, is no longer a valid class in font-awesome.
We used:
and that worked.
Comment #5
inders CreditAttribution: inders commentedFYI -
Twitter
Comment #7
truls1502I hope you got the bits of help. I am going to close the ticket as fixed. Please correct me and re-open the ticket if you still facing the issue.