• Resolved phpmaster

    (@rodekker2017)


    Hi,

    I’m using a theme with fontawesome included (version 4.7.0). The theme correctly uses the wp_enqueue_styles to load the css file. This plugin also loads fontawesome version 4.2.0 as a hardcoded link in a css file. As a result the fontfiles are loaded twice.

    I would appreciate an update of the plugin that removes the hardcoded links from the css file and use the wp_enqueue_styles in the main php file.

    This way users can dequeue it easily and fi replace it with a CDN version of fontawesome

Viewing 3 replies - 1 through 3 (of 3 total)
  • Any update on this? It would also be useful to have an option to not load Font Awesome in the plugin’s settings or make available a filter.

    Plugin Contributor Ewout

    (@pomegranate)

    The latest version of WooCommerce Menu Cart uses FontAwesome 4.7.0 and loads it in a separate CSS file. 4.7.0 is the newest FontAwesome available, but if you would like to unload it:

    
    add_action( 'wp_enqueue_scripts', 'wpmenucart_dequeue_fontawesome', 999 );
    function wpmenucart_dequeue_fontawesome() {
    	wp_dequeue_style( 'wpmenucart-fontawesome' );
    }
    

    Hope that helps!
    Ewout

    Thanks Ewout. That works.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Font awesome hardcoded in css’ is closed to new replies.