• Resolved Vic Drover

    (@vdrover)


    The plugin description says that “It is recommended to let this plugin enqueue the latest version of Font Awesome on your front-end”.

    I already have font awesome installed via my theme. How can I prevent this plugin from loading font awesome a second time?

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

    (@mattkeys)

    I would do two things if you want to use the version of FontAwesome already included in your theme:

    1) Use the filter offered by this plugin to set the version number of FontAwesome to match the one used by your theme. See snippet below for an example, this can be put in your functions.php

    2) When creating fields, do not enqueue FontAwesome (this is the default choice anyways)

    function override_fontawesome_version() {
    	
    	return '4.7.0';
    }
    add_filter('ACFFA_override_version', 'override_fontawesome_version');

    I hope this helps,

    Matt Keys

    Thread Starter Vic Drover

    (@vdrover)

    Very helpful! TYVM. Excellent work on the plugin. I was using ACF for the first time today and FA showed up in the search results. Very convenient timing as I was just about to start figuring out how to select icons in the editor ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use my own font awesome’ is closed to new replies.