The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
How to Use Custom F...
 
Notifications
Clear all

[Solved] How to Use Custom Fonts

7 Posts
2 Users
0 Reactions
2,167 Views
(@deewinc)
Posts: 36
Trusted Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
[#5402]

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]

 
Posted : 15/11/2022 12:48 am
Asti
 Asti
(@asti)
Posts: 8257
Illustrious Member Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Hi,

Please clarify a bit, which CSS file are you referring to?


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 15/11/2022 12:41 pm
(@deewinc)
Posts: 36
Trusted Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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]

 
Posted : 20/12/2022 1:12 pm
Asti
 Asti
(@asti)
Posts: 8257
Illustrious Member Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

You can disable the "Load Font Awesome css lib" option in the wpDiscuz settings. 

Then enqueue your qustom CSS fonts. 


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 21/12/2022 11:40 am
(@deewinc)
Posts: 36
Trusted Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Any idea how to do it?


private adult chat rooms free - https://privateladyescorts.com - [url=https://privateladyescorts.com/girls.html] private adult site [/URL]

 
Posted : 22/12/2022 5:00 pm
Asti
 Asti
(@asti)
Posts: 8257
Illustrious Member Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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.


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 26/12/2022 12:39 pm
Asti
 Asti
(@asti)
Posts: 8257
Illustrious Member Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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!


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 19/01/2023 3:26 pm