WP Provider
WP Provider
134 Google recensies
Ferdi Verlaan
24/03/2023
Goede partner, supersnelle response. Blij met ze ;-)
Bert Steinebach
16/03/2023
Dit bedrijf reageert snel en deskundig. Dat geeft een vertrouwd gevoel.
Patrick Diepgrond
06/03/2023
Always the best service. You have a question, ask them and the respond right away. Those are the guys that will take care of you. For many time they help me out and always Super quick and Super good. Thanks guys. Go on like that. Patrick Diepgrond
Jeroen Heerschop
06/03/2023
We are a customer of WPProvider for years now. We are also hosting our key customers with them. With other hosts we always encountered issues. But never with WPProvider. Priccing and responsiveness are really worth 5 stars.
Rita Kemink
20/01/2023
Onze vereniging is sinds kort overgestapt naar WPProvider, zij hebben deze overstap keurig geregeld. Reageren snel bij vragen en de hulp is fantastisch.
Perfectpro Algemeen
18/01/2023
Betrouwbaar, adequaat en behulpzaam
BS TOYS
12/01/2023
Zojuist voor het eerst kennisgemaakt met WP Provider. Supersnel geholpen, blij mee!
Virgil Bloemhard
30/12/2022
Snelle support. Een DNS aanpassing aangevraagd via de mail en binnen een paar minuten al doorgevoerd!
byAr Bicycle
04/12/2022
Harde werkers, top service, staan altijd voor je klaar! Wat kan je nog meer wensen?!

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:

admin

admin

Laatste berichten

Follow us