[NODEBB] Help for my custom CSS
-
yes @downpw
So is taht the problem.
The core migrated to FA6 and no longer automatically includes the compatibility layers. Theall.cssalone is no longer enough because it only loads icons in native FA6 syntax (fa-solid,fa-regular, etc.). Your old icons using FA4 syntax (fa fa-something) are no longer recognized without the shims.Hence the need for the three files:
all.css: the FA6 icons themselvesv4-shims.css: the mapping table that remaps the old FA4 names to their FA6 equivalents (many icons were renamed between FA4 and FA6)v4-font-face.css: redeclares the FontAwesome@font-facewith the old family names (FontAwesomeinstead of"Font Awesome 6 Pro"), so CSS selectors targeting the oldfont-familykeep resolving
So if your customs still use FA4 syntax, all three are required.
I load my Custom FA like this in my ACP/Headers :
<link href="/assets/customfonts/FontAwesome.Pro.6.x.x/css/all.css" rel="stylesheet" /> <link href="/assets/customfonts/FontAwesome.Pro.6.x.x/css/v4-shims.css" rel="stylesheet" /> <link href="/assets/customfonts/FontAwesome.Pro.6.x.x/css/v4-font-face.css" rel="stylesheet" /> -
how i create those folders. i added ACP/HEADERS the codes but not working.
-
-
You need to load your Font Awesome CSS files by adjusting this code to the path where you saved them.
But honestly, I don’t know how you’ve configured your site in this regard.
-
<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” />
<link href=“/assets/fonts/fonts.min.css?version=1” rel=“stylesheet”>
<link href=“/assets/customfonts/FontAwesome.Pro.6.x.x/css/all.css” rel=“stylesheet” />
<link href=“/assets/customfonts/FontAwesome.Pro.6.x.x/css/v4-shims.css” rel=“stylesheet” />
<link href=“/assets/customfonts/FontAwesome.Pro.6.x.x/css/v4-font-face.css” rel=“stylesheet” />
<script src=“https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.umd.js”></script>
<link rel=“stylesheet” href=“https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.css”/>
<a id=“pageUp” class=“”><i class=“fas fa-chevron-up”></i></a>
<div id=“readingposition” class=“reading-meter” style=“bottom: 0px;”>
<div class=“reading-meter-background rounded-1 border border-gray-300 ready”>
<div class=“reading-meter-progress-bar rounded-1” id=“progress-bar”>
</div>
</div>
</div>what i have now
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginDid this solution help you?
Related Topics
-
-
-
-
-
-
-
[NODEBB] CSS Style Sheets SelectBox
Locked Solved Customisation -