• Resolved Dom Stapleton

    (@domstapleton)


    Love the plugin! However, it would be great if you could add the CSS styles for the plugin using wp_enqueue_style or something similar so we can dequeue it rather than echoing them straight into the head. I’m overriding a number of the default styles which at the moment is forcing me to use CSS with over-the-top specificity or the !important keyword.

Viewing 1 replies (of 1 total)
  • Plugin Author taisho

    (@taisho)

    Hello,

    the over-the-top specificity in the plugin is to make sure that no themes have a priority with their CSS without !important over CSS of this plugin. Either the exact selectors or !important can be used for customization.

    I can’t put the CSS in a stylesheet due to a lot of rules being dynamic, based on plugin settings or sometimes based on what theme is used.

    What I could do it to add a filter that if used would prevent plugin styles loading at all. However, this would not only make most of the plugin settings stop working because they add/change CSS rules but above all leave the buttons in ruin by erasing CSS that takes care of proper sizing and positioning on multiple different page types with multiple different themes.

    I don’t think that unloading plugin CSS would make sense unless I misunderstood the issue. It took multiple hours of my tests and feedback from the vocal part of now a few thousand users to get the CSS quite good and it will get even better later, so I wouldn’t try to get rid of the core CSS, only do changes based on what already exists.

    Best regards,

    Ryszard

    • This reply was modified 6 years, 1 month ago by taisho.
Viewing 1 replies (of 1 total)

The topic ‘Enable unloading of CSS’ is closed to new replies.