Support » Plugin: Advanced Custom Fields: Font Awesome Field » Using FA Kit: How to deregister style “font-awesome” for front end?

  • Hi,

    I am using the new Fontawesome Kit service for Fontawesome Pro. So I was wondering how to deregister plugin’s css on front end as I don’t require it to run aynmore?

    The regular way that you would normally use for deregistering doesn’t work. Example:
    add_action( ‘wp_print_styles’, ‘wps_deregister_styles’, 100 );
    function wps_deregister_styles() {
    wp_deregister_style( ‘font-awesome’ );
    }

    Thanks,
    Matej

Viewing 1 replies (of 1 total)
  • Plugin Author Matt Keys

    (@mattkeys)

    This plugin will not enqueue FontAwesome on the frontend unless it is configured to do so while creating your FontAwesome field in ACF.

    In the field definition, look for the “Enqueue FontAwesome?” area, the default selection is “No” but you may have set it to “Yes” when you were setting it up initially.

    Screenshot: https://cloudup.com/cNaV9SgZdq3

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