• Resolved tom96

    (@tom96)


    Hey there,
    I really like bfa, it’s pretty helpful.
    So I want to download my fonts async via webfontloader and now need the option to disable the download of fontawesome by the plugin. I can’t really deregister the inclusion of the stylesheet since its slug is build together dynamically depending on the version.

    Thanks in advance

    https://www.ads-software.com/plugins/better-font-awesome/

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

    (@mcguive7)

    If I understand correctly, you want to remove the auto-included BFA file, is that right? If so, you can simply deregister the style inclusion. I think you may be mistaken – the enqueue slug is:

    self::SLUG . '-font-awesome'

    . . . which translates to:

    bfa-font-awesome

    So you should just be able to add:

    wp_deregister_style( 'bfa-font-awesome' )

    That said, I’m curious why you want to go to all the trouble to use webfontloader. Can’t you just deregister the default enqueue and re-enqueue in the footer?

    Thread Starter tom96

    (@tom96)

    My bad. Got it removed with that, thank you very much. Well we basically want to load FontAwesome with Webfontloader because we are using it for the other fonts anyways and we don’t really want to throw out our consistency. And for performance reasons of course.

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature Request: Option to disable the inclusion of FontAwesome’ is closed to new replies.