The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] How to Use Custom Fonts
How-to and Troubleshooting
(@deewinc)
Trusted Member
Joined: 5 years ago
Hello guys,Â
Is there a way to force WpDiscuz to use custom fonts? I took the default font file it comes with and modified a bit to remove fonts/icons/characters that I will never use.Â
The outcome is a font file with a size of 4KB down from 75KB, which results in unused CSS issues on Core Web Vitals test.Â
What I'm doing now is pretty stone age by replacing the default font on WpDiscuz root folder with my edited file.Â
But I have to repeat this all the time when developers push an update for the plugin.Â
How can I go around this and permanently force my font file and still be able to update the plugin without the need to replace the file.
private adult chat rooms free - https://privateladyescorts.com - [url=https://privateladyescorts.com/girls.html] private adult site [/URL]
(@asti)
Illustrious Member
Joined: 8 years ago
Hi,
Please clarify a bit, which CSS file are you referring to?
(@deewinc)
Trusted Member
Joined: 5 years ago
The font file is huge, and Core Web Vitals lists it as a cause for unused CSS. Once I use my stripped-down font version, the unused CSS issue on Core Web Vitals doesn't show up.Â
So, I want to use my stripped-down font without the need to replace it on the WpDicuz root folder.Â
Â
Is there a way I can achieve this?Â
private adult chat rooms free - https://privateladyescorts.com - [url=https://privateladyescorts.com/girls.html] private adult site [/URL]
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8188
Dec 21, 2022 7:40 am
You can disable the "Load Font Awesome css lib" option in the wpDiscuz settings.Â
Then enqueue your qustom CSS fonts.Â
(@deewinc)
Trusted Member
Joined: 5 years ago
private adult chat rooms free - https://privateladyescorts.com - [url=https://privateladyescorts.com/girls.html] private adult site [/URL]
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8188
Dec 26, 2022 8:39 am
Hello deewinc,
1. Put the custom font CSS file into your current theme. Â
2. Add the following code in the active theme functions.php file:Â
add_action('wp_enqueue_scripts', 'my_style');
function my_style() {
wp_enqueue_style('my_style', get_template_directory_uri() . '/my-style.css', array(), '1.0.0');
}
3. Change the red-marked filename to your custom font CSS filename.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8188
Jan 19, 2023 11:26 am
We have not received a reply from you for over a couple of weeks, therefore we will be closing this topic. Please create a new one if you require any additional help.
Thank You!