WP Provider
WP Provider
151 Google recensies
Inge Scholman
17/08/2023
Snelle en goede service! Kan altijd op WP-provider rekenen!
Colin Harzing
27/07/2023
Fijne hosting partner. Altijd snel en responsief. Neemt al je zorgen uit handen omtrent hosting. Echt een aanrader!
Jan Hartog
27/07/2023
Supr snelle en vakkundige service! Heel fijn bedrijf!
Philippe Neven
03/07/2023
Fijne partner om mee samen te werken. Ontzorgen je volledig op hosting gebied en zijn gespecialiseerd in WordPress. Wanneer er iets is, ontvangen wij altijd snel en persoonlijk een reactie en worden onze vragen ook snel opgelost. Kortom, wij worden goed geholpen en ontzorgd!
Steven E.
30/06/2023
WP Provider has gone above and beyond to surpass my expectations. Their customer support is exceptional, and their performance is reliable, making them a true gem in the Wordpress hosting industry
Marijnke Vincent
28/06/2023
Super snel en fijne service en klantcommunicatie!
Max van Velsen
22/06/2023
Fijne, professionele en vooral snelle service! Krijg altijd snel en concreet antwoord op mijn vragen. Niks slechts op aan te merken.
EMQ
21/06/2023
Wat een fijne partij! Goed bereikbaar, meteen hulpvaardig. Wij zijn heel tevreden.
Raymond Ros
19/06/2023
Zeer tevreden, aftersales dik in orde bij WP Provider!
John Gruter
13/06/2023
Wat een topservice leveren zij. Altijd snel een oplossing als er wat is. Als iemand een website wilt laten maken of beheren, bent u hier aan het goede adres, tegen normale prijzen. Blije Voeteb

Remove Font Awesome from your WordPress Theme

There are still many themes that automatically load the Font Awesome icons and do not give users the option to prevent this. If you don’t need the icons or prefer to load them locally, disable loading by the theme. Below we explain how this works.

But first, we briefly explain what Font Awesome icons actually are, everyone has surely seen them before.

What is Font Awesome?

Font Awesome is the most widely used toolkit for vector icons that can be easily customized with CSS. You can change the size and color of the icons, add a drop shadow or use animated loading icons, among other things. As the name suggests, according to their own description, the icons look “fantastic” ? In fact, they are a popular style tool to spice up or design a website with icons.

Disable automatic loading of Font Awesome

Reasons to disable automatic loading from a remote server can include performance improvement and, of course, GDPR compliance.

First of all, you should find out which handle the stylesheet is called with. To do this, look in the functions.php of the theme, you should look for the term font-awesome or fontawesome associated with the wp_enqueue_style call

In our theme for the demo, the corresponding rule was

wp_enqueue_style('mh-font-awesome', "//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css", array(), null);

The $handle is therefore mh-font-awesome

In the code reference from wordpress.org you can find more information about the wp_enqueue_style function

Now insert the following code into the functions.php of the child theme to prevent loading:

// Dequeue Styles - Remove Font Awesome from WordPress Theme
add_action( 'wp_print_styles', 'dequeue_font_awesome_style' );
function dequeue_font_awesome_style() {
      wp_dequeue_style( 'mh-font-awesome' );
      wp_deregister_style( 'mh-font-awesome' );
}

You can find more information about the wp_dequeue_style function in the code reference from wordpress.org

 

Delen:

Picture of admin

admin

Laatste berichten

Follow us