• I’ve read that if I want to change something in Style.css for a child theme, I just include that single item to be changed in the Style.css in the child theme and it overrides the identical style item in the parent Style.css.

    What if I want to change something in Main.css in the css subdirectory? Do I put that in Style.css, too, or will a parallel main.css in the child directory override the parent main.css?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Even if something is in another stylesheet you still override it in your Child Theme style.css file. If it turns out the thing you want to override cannot just be copied into your Child Theme style.css file because it is being loaded after your style.css file then you can just use more specific selectors to override it.

    Thread Starter rdader

    (@rdader)

    Got it. Thank you.

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

The topic ‘Main.css versus Style.css’ is closed to new replies.