Problem with Divi stylesheet - remove css on element placed on element by style sheet

907 Views Asked by At

So I know the question is going to sound really weird as to why I want to do this, so here is a quick synopsis:

I am working with wordpress, writing my own child theme. There is some style sheet that has changed all of the <a></a> tags to be white, to blend into the background... which is also white. I don't know why its like this, which style sheet is doing it (*Edit: it is a Divi style sheet), or what plugin is doing it for that matter. To me I don't really care about answering those questions. In the end, all I need to know is -

"How do I remove that style placed on all <a></a>, that have varying colors, :hover, :active, etc."?

An extra note is that I do have access to the developer console, which means I can see every class, element, id, etc, that is having the attribute color: white; being applied to it, if that is helpful at all.

I am willing to take a wordpress, css, or even javascript answer. If any of that is possible.

1

There are 1 best solutions below

3
On BEST ANSWER

Get the links whose color you need to change and then for each of them do:

element.style.color = "#000";

For :hover see https://stackoverflow.com/a/11371562/1371131.