• I would like to completely remove various attributes from the parent CSS using the child CSS.

    Is there an easy or universal way to remove them? For example:

    .widget{
    width:290;
    margin-bottom:12px
    }

    I want to remove the width:290 in the child theme. Other times, I want to remove the margin, or link formatting, etc. Is there a universal command I can use to clear formatting from the parent theme?

    This may be more of a CSS question than a WordPress support question.

Viewing 3 replies - 1 through 3 (of 3 total)
  • There’s no universal command. You simply add the new CSS properties to the child theme and they over-write the parent’s.

    Thread Starter johnsonr88

    (@johnsonr88)

    So I set margins and stuff to 0 or none depending what it is. How about width? I can’t set width to 0 and setting it to auto doesn’t seem to be working for me.

    So I set margins and stuff to 0 or none depending what it is.

    Bingo! ??

    How about width?

    Try 100%.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing CSS attributes in child theme’ is closed to new replies.