Created
August 28, 2020 16:10
-
-
Save brianleejackson/0e11148e30a650d5a8022e5ae6f030f9 to your computer and use it in GitHub Desktop.
Disable Font Awesome in YITH WooCommerce Wishlist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( function_exists( 'yith_wishlist_install' ) ){ | |
if ( ! function_exists( 'yith_wcwl_remove_awesome_stylesheet' ) ) { | |
function yith_wcwl_remove_awesome_stylesheet() { | |
wp_deregister_style( 'yith-wcwl-font-awesome' ); | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'yith_wcwl_remove_awesome_stylesheet', 20 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@brianleejackson The only way I found is to dequeue font-awesome styles first and then enqueue the rest of the styles again. I'm not sure if it's the best solution and it will not break any code, but for me it's working, I have all the wishlist CSS styles except FontAwesome. So here is the code: