Is there somewhere inline CSS pulls from other than theme.json?

[ad_1]

I have been trying to fix an issue with a link color. For some reason in the post content it shows up as a black link and I want it red. You can see it here:

Inspect element shows that there are three settings for it. The first is the standard body links set to “contrast”. Then there’s one for links set to “secondary”. But both are overridden by a post content specific link set to “primary”.

Oddly I was able to add an underline to the attributes for the post content one, so that’s showing up now. However, that same section in the json file is set to secondary, not primary. So I don’t know where that is pulling from. In the json file there is only one use of color–primary and it’s for button backgrounds.

Where could I change that link color CSS? Either in the JSON or through the Site Editor CMS or something else.

Edit: There are also a bunch of jsons in the styles folder, but I assume these are style default settings for the pre-made styles available. I’ve deleted them all and it didn’t seem to make a difference.

Here’s the only section of it that’s post-content related. The underline I added here did show up but for some reason the color–secondary doesn’t.

“core/post-content”: {
“elements”: {
“link”: {
“color”: {
“text”: “var(–wp–preset–color–secondary)”
},
“typography”: {
“textDecoration”: “underline”
}
}
}
},

And this is later down in the file, in a list of “elements” that doesn’t seem to be tied to any particular block type.

“link”: {
“color”: {
“text”: “var(–wp–preset–color–secondary)”
},
“:hover”: {
“typography”: {
“textDecoration”: “underline”
},
“color”: {
“text”: “var(–wp–preset–color–contrast)”
}
},
“:focus”: {
“typography”: {
“textDecoration”: “underline”
},
“color”: {
“text”: “var(–wp–preset–color–secondary)”
}
},
“:active”: {
“color”: {
“text”: “var(–wp–preset–color–secondary)”
},
“typography”: {
“textDecoration”: “underline”
}
},
“typography”: {
“textDecoration”: “underline”
}
}
},

Edit2: I think I made it work but I had to add “Additional CSS” and just add a selector for this type of link specifically. I still would like to change the other settings but at least this additional CSS overrides them.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer