WordPress.org

Forums

[resolved] Overriding CSS File From Parent Theme (5 posts)

  1. allanlud
    Member
    Posted 1 year ago #

    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.

  2. Andrew
    Nuh uh moderator
    Posted 1 year ago #

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

  3. allanlud
    Member
    Posted 1 year ago #

    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?

  4. Andrew
    Nuh uh moderator
    Posted 1 year ago #

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

  5. allanlud
    Member
    Posted 1 year ago #

    Great thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.