cancel styles (css) in Child Theme

0

I am working on a web in Wordpress and with a child theme. I would like to know if you could help me determine the css code that I would have to enter in the child theme to make the following css code, which comes from the parent theme, go away:

.top-nav ul li a:hover {color: #333;}

This code causes the texts of the header menu to change color when the pointer is on top of it.

If you could help me determine the code that I have to include in the child topic, so that the effect of the previous css is canceled:

.top-nav ul li a:hover {color: #333;}

Thank you.

    
asked by fernanf 12.09.2018 в 01:30
source

1 answer

0

It seems to me that you can only add a rule with a greater specificity in the son theme.

Something like:

body .top-nav ul li a:hover {color: #333;} // Aquí cambiar por otro color

But it also depends on where and how the parent theme rule is defined. (In an external CSS file or a style tag, etc ...)

Here you can read a little more about the subject. link

    
answered by 12.09.2018 в 04:09