Skip to content

Instantly share code, notes, and snippets.

@temsool
Last active April 15, 2021 07:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save temsool/50c98428168b4308649692ea90727e2d to your computer and use it in GitHub Desktop.
Save temsool/50c98428168b4308649692ea90727e2d to your computer and use it in GitHub Desktop.
How dequeue fontawesome elementor
<?php
add_action( 'wp_print_styles', 'dequeue_font_awesome_style' );
function dequeue_font_awesome_style() {
wp_dequeue_style( 'font-awesome' );
wp_deregister_style( 'font-awesome' );
}
?>
@jacalakie
Copy link

In case this helps anyone further, I have just received this from Elementor Support today (14/04/21)

You may dequeue Font Awesome by adding the code below into your theme's functions.php file:

add_action( 'elementor/frontend/after_register_styles',function() { foreach( [ 'solid', 'regular', 'brands' ] as $style ) { wp_deregister_style( 'elementor-icons-fa-' . $style ); } }, 20 );

For other resources, you may see the respective codes in the doc below:

https://docs.elementor.com/article/286-speed-up-a-slow-site

@temsool
Copy link
Author

temsool commented Apr 15, 2021

@jacalakie Thank you. Appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment