0

I have the following line in the original theme style.css file:

background: none repeat scroll 0px 0px #CCC;

In my child-theme.. I want to delete the "background: line..

But how?

Update:

OK to make things clear....

As I'm using a child theme with an own style.css file.. This settings in the style.css file override the ones in the parent theme.

In the theme's style sheet the following is stated...

.content-ver-sep {
     background: none repeat scroll 0px 0px #CCC;
     border-bottom: 1px solid #FFF;
     clear: both;
     height: 1px;
}

but for the child theme's style.css sheet I don't wont a background declaration or a border bottom.. So I know how to override it (with another value) but how do i delete or ignore these settings.

closed as off-topic by Nathan Johnson, Krzysiek Dróżdż, Jacob Peattie, Christine Cooper, Jack Johansson Apr 8 '18 at 20:25

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third party plugins and themes are off topic, they are better asked about at their developers' support routes." – Nathan Johnson, Krzysiek Dróżdż, Jacob Peattie, Christine Cooper, Jack Johansson
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Why do you want to delete it, as opposed to overriding it? – TheDeadMedic Apr 4 '15 at 16:31
1

You can not delete or ignore default styling in a child theme. You must override the declaration.

 .content-ver-sep {
 background: transparent !important;
 border-bottom: none !important;
 clear: both;
 height: 1px;
 }

this should do the trick -

Not the answer you're looking for? Browse other questions tagged or ask your own question.