fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

When i disable dashicon, plugin not working anymore

Tobias Purro

Hi,

When i add this to my functions.php :

add_action(‘wp_print_styles’, ‘jltwp_adminify_remove_dashicons’, 100);

/** Remove Dashicons from Admin Bar for non logged in users **/
function jltwp_adminify_remove_dashicons()
{
if (!is_admin_bar_showing() && !is_customize_preview()) {
wp_dequeue_style(‘dashicons’);
wp_deregister_style(‘dashicons’);
}
}

All my website is working well, except your plugin which not work anymore, do you know why ? I don’t want dashicon on the front because it’s huge css file that decrease our google page speed note

Thanks for your feedback !

I have the premium plugin

Hakik Zaman

Hi Tobias,

Thanks for reaching out to us. Yes, we are using “dashicons” to display arrow icons on the product page image gallery.

Dashicons are inside the WP core. So, we don’t use any additional font library to display arrows and magnify icons for our plugin.

I hope it will clear up your confusion.

Thank You

Tobias Purro

Hi,

I don’t understand because i have disable the arrows and i stil face the same problem, how can i do to make it work without Dashicons ? It’s a huge ressource normally made only for the backoffice, all my websites and all others plugins are working well without, i only have the problem with yours

Do you have a solution please ?

Many thanks

Hakik Zaman

Hi Tobias,

Could you record me reproducing your issue using a tool like a loom?
It helps me to quickly figure out the issue.

Thank you

Tobias Purro

Hi,

I think that with screenshot il will be enough understandable

So i disabled all the arrows on the plugin (screenshot)

I added my code in my functions.php :

add_action(‘wp_print_styles’, ‘jltwp_adminify_remove_dashicons’, 100);function jltwp_adminify_remove_dashicons()
{
if (!is_admin_bar_showing() && !is_customize_preview()) {
wp_dequeue_style(‘dashicons’);
wp_deregister_style(‘dashicons’);
}
}

The result in the second screenshot, the gallery is totally broken

Thanks for your help

https://ibb.co/ZKrkxrK
https://ibb.co/64BHBW7

Hakik Zaman

Hi Tobias,

We have a dependency on ‘dashicons’ and unfortunately, there is no way to skip the ‘dashicons’ at this moment.

Thank You