Support » Plugin: YITH WooCommerce Wishlist » Why is font awesome being loaded by your plugin?

  • Resolved Michael Ott

    (@mikeyott)


    I can’t see any reason for this, and there’s no setting to disable it. And consequently that is another request hurting performance for no good reason.

    Maybe add an option to disable it?

    Thanks in advance.

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

    (@yithemes)

    Hello there,

    Thanks for contacting us and I hope you’re doing well 🙂

    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.

    I’ll send your request to our developers and they’ll study the possibility to add an option in a future release

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

    Have a good day.

    Thanks for this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.