WordPress.org

Support

Support » Themes and Templates » [Resolved] Overriding CSS File From Parent Theme

[Resolved] Overriding CSS File From Parent Theme

  • Hi all,

    This isn’t about the style.css, that works fine, I am trying to override a CSS file within a css folder of the parent theme, I’ve copied the same file into the child theme (same location) and made changes there but no changes are made on the live site, is there another way to do this?

    Thanks,
    Al.

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

    @anevins

    Forum moderator

    You don’t do that, you just override it in your (child theme) style.css file.

    Ok thanks, I haven’t really used child themes before, but I thought the way I was doing it was right.

    Looking at the source code, the CSS file I wanted to duplicate is being pulled in after the style.css, so if I target the element I want to style in style.css it should be ok?

    Moderator Andrew Nevins

    @anevins

    Forum moderator

    You can use more specific CSS selectors in your Child Theme style.css file to override it, if it’s being called after

    Great thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Overriding CSS File From Parent Theme’ is closed to new replies.
Skip to toolbar