Hello there,
Did you try what we had suggested in the email that you had sent to us lately?That should work probably as since each and every enqueued style will have a specific handle and the priorities shouldn’t matter as since you will dequeue the style with specic enqueue handle.
Please try below code once.
add_action( 'wp_enqueue_scripts', 'remove_font_awesome', 20 );
function remove_font_awesome(){
wp_deregister_style( 'apsc-font-awesome-css' );
wp_dequeue_style( 'apsc-font-awesome-css' );
}
Thanks.
I must have missed that email. I am sorry.
I tried the function written as is but I cannot remove apsc-font-awesome-css whether in wp_enqueue_scripts or wp_print_styles. I suspected the reason is because apsc-font-awesome-css is listed as a dependency of apsc-frontend-css.
Since I am only using the plugin for the counter, I tried to remove all CSS. So I wrote the function below. Only apsc-frontend-css could be removed and only if hooked into wp_print_styles. Is there a better function for removing all add CSS thanks.
add_action( 'wp_print_styles', 'remove_apsc_css');
function remove_apsc_css(){
wp_deregister_style( 'apsc-font-awesome-css' );
wp_dequeue_style( 'apsc-font-awesome-css' );
wp_deregister_style( 'apsc-frontend-css' );
wp_dequeue_style( 'apsc-frontend-css' );
}
Essentially all I need to do is write a function to remove
SC_Class->register_apsc_widget()
If I comment out the code everything works. I have also tried several combinations including:
remove_action('wp_enqueue_scripts', 'SC_Class->register_frontend_assets');
remove_action('wp_enqueue_scripts', 'register_frontend_assets');
Thanks.
Hello there,
We have released a new version where we have removed the font-awesome dependency from the frontend style and also loaded the font awesome from the CDN.
We tried several methods to dequeue and remove action that are available in the wordpress codex but unfortunately none of those worked.So we are still find the exact solution of dequeuing and remove the action using some other hooks.
Thanks.
This matter is still unresolved even though you marked it as resolved. I am forced to go into your plugin and comment out the loading every time you have a revision. The reason why I am opening this up is the problem appears again in your AccessPress Social Share plugin but it is even worse. Not only am I forced to load your front-end, but your front-end is not even complete and not all of my font-awesome icons show.
I have also emailed support and support has stopped responding.