FontAwesome 6 Pro SVG Kit & CSS :before not working #19595
-
When using a FontAwesome 6 Pro SVG Kit, Icons in :before don't seem to work.
It works, if I add the Web Font:
Is this a known limitation/problem? Or am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Never mind, I found the solution. I needed to add "data-search-pseudo-elements" to the script tag: |
Beta Was this translation helpful? Give feedback.
-
You need to call the script in the head of the html |
Beta Was this translation helpful? Give feedback.
Never mind, I found the solution. I needed to add "data-search-pseudo-elements" to the script tag:
<script data-search-pseudo-elements src="https://kit.fontawesome.com/YourKitID.js" crossorigin="anonymous" defer></script>