Skip to content

Instantly share code, notes, and snippets.

@Pross
Created November 30, 2021 15:28
Show Gist options
  • Save Pross/8eedddb125d2e04340523e128c097a1b to your computer and use it in GitHub Desktop.
Save Pross/8eedddb125d2e04340523e128c097a1b to your computer and use it in GitHub Desktop.
dequeue fa5
add_action( 'wp_enqueue_scripts', function() {
if ( ! isset( $_GET['fl_builder'] ) ) {
wp_dequeue_style( 'font-awesome' );
wp_dequeue_style( 'font-awesome-5' );
wp_deregister_style( 'font-awesome' );
wp_deregister_style( 'font-awesome-5' );
}
}, 99999 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment