Hi guys, in my theme I have this:
add_action( 'wp_enqueue_scripts', 'click_enqueue_assets' ); function click_enqueue_assets() { wp_register_style( 'font-awesome', get_stylesheet_directory_uri() . '/lib/css/font-awesome.min.css', false, '4.2.0' ); if ( !is_admin() ) { wp_enqueue_style( 'font-awesome' ); } }
The Font Awesome stylesheet is registered with the handle font-awesome
, same like in the plugin. However the plugin is still including a 2nd instance of font awesome from wp-content/plugins/bb-plugin/css/font-awesome.min.css
See the problem here:
https://clickwp.com
http://dev.clickwp.com (staging site without the CDN)
Shouldn’t the plugin not enqueue the Font Awesome stylesheet a 2nd time after my theme already registers it? If not, how can I prevent Beaver Builder from doing so?
Thanks (Merry Christmas & Happy New Year in advance)!