Plugin removes CSS media attribute
-
It looks like your CSS minify & combine functions both remove the
mediaattribute from CSS files. In my Total theme, I rely on themediaattribute to include two separate CSS files that manage the mobile menu breakpoint. When your plugin combines and/or minifies the files it strips themediaattribute. This causes the main menu and mobile menus to disappear and introduces other design problems.Please see this screenshot: https://a.cl.ly/xQukPzAm
While I don’t personally use your plugin (though I do recommend it), I’ve had many customers report this issue in the past.
I would greatly appreciate it if you could update the plugin to ensure it respects the
mediaattribute specified in the CSS files (a core parameter ofwp_register_style). This change would help avoid a lot of unnecessary headaches for both me and your users.Additionally, it would be good if your fields used to exclude CSS/JS files could accept script handle names. It would keep the data inside the field much slimmer and also it makes more sense to exclude by handle then path.
Thank you!
- AJ
The topic ‘Plugin removes CSS media attribute’ is closed to new replies.