Site logo

Archived topic

Change Product Background Colour

10 replies · Started by Mohammed on April 1, 2023

Viewing posts 1–11 of 11

Hi there,

try this:

.single-product {
    --contrast: #fff;
    --base-3: #000;
    background-color: var(--base-3) !important;
}
.single-product a {
    color: var(--contrast) !important;
}
.single-product input {
    color: #000 !important;
}

In the first CSS rule you will see --base-3: #000; change the hex color for the background color you want.

Hi, it doesn't seem like it changed anything. Are you able to kindly take a look please.

I'm not seeing David's CSS being added.

Can you clear and disable any caching or optimization plugins you are using?

Let me know :)

Hi, I don't see any caching or optimization plugins installed.

When adding the code I did notice the header and footer text go black on the product pages.

Can you disable all plugins except for GP premium and WooCommerce then?

Yes done. I still don't see any changes reflecting. I disabled them one by one and have left them all off.

Added WP login credentials

Thank you so much!

No problem :)

This archived topic is closed to new replies.