Site logo

Archived topic

How to find where does a CSS come from?

5 replies · Started by roadlink on May 1, 2021

Viewing posts 1–6 of 6

Hello,

When I check my site from css validator, I see some errors.
I see this error.
"Error: CSS: border-color: fbfbfb is not a border-color value."

I found this CSS, but can't find where I can fix it.
Any suggestion?
Thank you

<style>
			button.alert_button_hover:hover, button.unsubscribe_button:hover {
				background: #092143 !important;
				color: #ffffff !important;
				border-color: fbfbfb !important;
			}
		</style>

Hi Leo,

thanks for reply.
This CSS is already on my page.
I want to fix it but I can't find where it has been added from?

The code is being inserted into the <head> of the document. Have you added an Hook Elements to the site to insert CSS ? Or editing the themes header.php ?

Otherwise as Leo says it may be another plugin that is adding the code - and the only way to discover which one is to disable ALL plugins to see if the code goes away. Then re-enable one plugin at a time to see which one is adding it.

Thanks, one by one plugins helped me to solve.

Glad to hear that!

This archived topic is closed to new replies.