• Resolved dabodude

    (@dabodude)


    Hey guys! Could you please provide a snippet or other mean to prevent the plugin from loading the FontAwesome font?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello there,

    I hope you’re doing well ??

    If you want to prevent the plugin load the FontAwesome font, you’ll need to add the following code on functions.php

    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 );
    
    }

    anyway, if you remove it, icons won’t work because they need FonTAwesome in order to work.

    If you have any other questions, don’t hesitate to contact us, we’ll be happy to help you.

    Have a good day.

    Thread Starter dabodude

    (@dabodude)

    Thank you very much. Yes I am aware of this, but as you know many themes and plugins come with FontAwesome included so I am trying to load it only once to improve performance.

    I think it would be nice if you could include a setting to disable it in your plugin.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘FontAwesome’ is closed to new replies.