Support » Fixing WordPress » modifying plugins stylesheet

  • Hi –
    I know the proper way to modify a theme’s stylesheet is via a child theme. What is the best practice for modifying a plug-ins styleheet? I have tried to modify the style on the child’s themes style sheet but the changes don’t take. I don’t want to modify the plugin’s styleheet as the changes will get overwritten in an update.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Ideally, you would need to choose your CSS selectors carefully, so that your theme’s CSS over-rides the plugin’s. If that still fails, use the !important rule.

    Thread Starter staceyzav

    (@staceyzav)

    The plug in always chooses the selectors, I think.

    I’ve been told the !important rule is not best practice (is that true)? Is there a way to override the style sheet with my main theme’s sheet, like I do with the child theme style sheet?

    The plug in always chooses the selectors, I think.

    Sorry? I don’t follow. You can add whatever CSS you want to your child theme’s stylesheet.

    (is that true)

    Generally, yes but it’s there for exactly the kinds of situations, so it wouldn’t be contrary to best practice here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘modifying plugins stylesheet’ is closed to new replies.