Support » Fixing WordPress » CSS works on local build, not on staging site

  • Resolved Mantap

    (@mantap)


    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 2 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
  • Thread Starter Mantap

    (@mantap)

    I found it. 3 letters changed case in the plugin uri to the stylesheet compared to the stylesheet filename. Don’t know how that happened.

Viewing 1 replies (of 1 total)
  • The topic ‘CSS works on local build, not on staging site’ is closed to new replies.