There are some styles in my parent theme that I would simply remove from the stylesheet if I was not using a child theme. Obviously, I do not want to remove them from the parent css, but is there a way to effectively “remove” the styles using my child theme?
4 Answers
The only way to “remove” styles from the parent theme is to override them in your child theme’s css.
For example if you have the following declaration in your parent theme:
.someclass{
width: 200px;
float: left;
}
You can override the width and float by declaring the following in your child theme:
.someclass{
width: auto;
float: none;
}