• Resolved IT Hertz

    (@it-hertz)


    It’s strange. My enqueued child style.css is overriding the parent (Zita theme) and SOME plugins, but not other plugins.

    When I edit styles in Web Dev Tools or in the plugin css files themselves, the changes take effect, but NOT when the modified rules are in the child’s stylesheet. Using !important has no effect, either.

    Inspection of the page heads shows child style.css is the last stylesheet being loaded.
    And yes, I’ve been clearing browser cache.

    I’m at a loss. What could be causing this?

    • This topic was modified 3 years, 11 months ago by t-p. Reason: Moved to Fixing WordPress from Developing with WordPress
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    SOME plugins, but not other plugins

    I recommend asking at the dedicated support of these plugins so the plugins’ developers and support community can help you with this.

    Thread Starter IT Hertz

    (@it-hertz)

    Found the problem.
    I went back over the child style.css line by line and found a missing curly bracket. Everything below that was of course not going to work.
    ONE LITTLE BRACKET!
    Notepad++ wasn’t alerting me, since only the very next line was black instead of red like the other subsequent selectors.

    I could have sworn it was working before, and now I know it was. Maddening! I dunno how the bracket got deleted. Too much midnight coding and lack of sleep no doubt. ugh…

    Moderator threadi

    (@threadi)

    You may have a typo in your own style.css. Check in the Inspector what is delivered from the server, also the header information. A link to the page could help you.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘child theme style not overriding plugin css’ is closed to new replies.