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.
If you whan to use FontAwesome 5 in pseudo elements, for example in a CSS like:
ul > li::before {
font-family: "Font Awesome 5 Regular";
content: "\f0da";
}
You need to enable pseudo elements because is disabled by default:
window.FontAwesomeConfig.searchPseudoElements = true;
Ideally we can add a new checkbox in settings to enable pseudo-elements (admin/config/content/fontawesome).
Comment | File | Size | Author |
---|---|---|---|
#2 | css_webfonts_allow_pseudo_elements-2942653-2.patch | 3.5 KB | Daniel.Moberly |
Comments
Comment #2
Daniel.Moberly CreditAttribution: Daniel.Moberly commentedAttaching patch to allow pseudo elements in CSS. This adds a setting to the config form.
Comment #4
Daniel.Moberly CreditAttribution: Daniel.Moberly commented