CSS works on local build, not on staging site

I’ve adapted a little plugin just to load some custom css (for the H5P plugin). On my local development site, it all works ok. Now I’ve uploaded it to a staging site & none of the css shows up.

It seems my plugin works ok, since the firefox developer tools console shows numerous errors in my css (almost all are “Selector expected. Ruleset ignored due to bad selector”). So at least it seems that the css is being found and loaded. The css validates ok on online validators. As I said, I’m not getting these errors locally, so wondering what else could be causing this?

  • This topic was modified 1 day, 20 hours ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

Source link