WordPress.org

Ready to get started?Download WordPress

Forums

How to override parent theme css? (2 posts)

  1. mrling
    Member
    Posted 1 year ago #

    site: http://www.jakespharler.com
    theme: twenty-twelve (child theme)

    Problem: I was trying to override the style that defines the link color by adding the same code used to define it in the parent theme, just using "none" as the value:

    .widget-area .widget a {
    color: none !important;
    }

    However, this did not work. When inspecting with Firebug, I see the code I put in my child theme's css file, but I also see the default code directly below it, exactly the same, but with a grey color. Question: Isn't the child theme css suppose to override parent theme css?

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    The problem here is that none is not a valid color - what you are trying to do?

Topic Closed

This topic has been closed to new replies.

About this Topic