Disabling Dashicons causes CSS break & warning
-
Hello,
We discovered an issue whereby disabling Dashicons causes strange behaviour in Event Tickets Plus and The Events Calendar. See note below why we are posting here when using Event Tickets Plus.
All plugins and themes are up to date.
To reproduce the error:
- Twenty Twenty Four theme
- WooCommerce
- WooCommerce PayPal Payments
- The Events Calendar
- Event Tickets Plus* (See note below why we are posting here)
- Asset CleanUp: Page Speed Booster
Disable Dashicons using AssetCleanup (or another method)
Problem:
- The tickets page begins to show a message to logged out users saying:
“The numbers below include tickets for this event already in your cart. Clicking “Get Tickets” will allow you to edit any existing attendee information as well as change ticket quantities.” - The styling of the ticket page also breaks for logged out users.
- See screenshot: https://drive.google.com/file/d/1B71_fUXv3LY8Eo-2hQQNjaQE8pCbSriG/view?usp=sharing
Culprit:
- It appears that /wp-content/plugins/event-tickets/src/resources/css/tickets.min.css is a “child” of Dashicons.
- See screenshot: https://drive.google.com/file/d/1SpK3k0ArLNp3vCAeaIT3K9ebB2CUSo51/view?usp=sharing
Since it is common for people to unload unnecessary resources to speed up page load time, we believe plugin CSS should not be dependent on things like Dashicons. Many speed optimization plugins offer the feature to disable Dashicons, for instance.
Can you please let us know how we can remove dependency of your plugin on Dashicons, so that our site appears correctly for logged out users, and doesn’t show unnecessary warning messages?
We don’t want to slow down our site with Dashicons when we are not using it. We are comfortable using our own icon font file if need be.
At the following link you can see a solution to a similar problem with another plugin that broke with Dashicons disabled, in case it helps: https://wpml.org/forums/topic/code-used-to-fix-dashicons-bug-resulting-in-error/
*We have a non-profit license for Event Tickets Plus. We are not eligible for support through your main support channel. If you feel this is an issue that we are not allowed support with, please take this as a bug report.
- You must be logged in to reply to this topic.