• Resolved WPExplorer

    (@wpexplorer)


    It looks like your CSS minify & combine functions both remove the media attribute from CSS files. In my Total theme, I rely on the media attribute to include two separate CSS files that manage the mobile menu breakpoint. When your plugin combines and/or minifies the files it strips the media attribute. 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 media attribute specified in the CSS files (a core parameter of wp_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
Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @wpexplorer

    Thank you for reaching out and I am happy to help!

    Thank you for taking the time to report this. Can you pelase let me know if any of your demo themes can be used for teting purposes in this case?
    Also, can you please sahre the information which CSS minifier was used in this case?

    Once again Thank you for ttaking the time to share this and I’ll share this with the team for testing

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Plugin removes CSS media attribute’ is closed to new replies.