Site logo

Archived topic

Background color is suddenly gone!

16 replies · Started by Nico on December 28, 2022

Viewing posts 1–15 of 17

Hello and good morning. It's between the years again and the best time for weird mistakes .-)

Since yesterday the background color of our site has suddenly disappeared. The strange thing is that we haven't changed anything. Luckily we had pushed a dump of the page to our staging site in the last few days. So you can see the differences very well.

Livepage here (without background): https://www.hello-world.net/jakobswegreisen-shop/
Staging site here (with background): https://relaunch.hello-world.net/jakobswegreisen-shop/

Can someone tell me how this can be corrected?

thnx for helping in advance.

best regards from Germany
Nick

Hi Fernando!

Thnx for helping.

Attached are the two screenshots. On the test page you can see a gray background while the live page has no or a white background.

Stagingsite: https://immarketingforum-my.sharepoint.com/:i:/g/personal/marcuz_hello-world_net/ERJgmCA77cxOkH7svNcixjsBmT3gLwtPnLX6KkeEDutOkw?e=XvW1Eh

Livesite: https://immarketingforum-my.sharepoint.com/:i:/g/personal/marcuz_hello-world_net/EfOqeBPlK09EoWnEkCu7iogBkjhJ96D_StOcyJb5UnHmiA?e=9OIbcI

Hi Nico,

Can you check if the Content Layout settings of both sites at customizer > layout > containers are matching?

The Elementor plugin is adding a white background color to the body of your live site.

If you disable the Elementor plugin, the colour should show correctly.

It's alright to run Elementor in parallel with GeneratePress. It just means that the code Elementor generates takes precedence over the code of GeneratePress. You'll need to remove the setting in Elementor that sets the white background color to the body, or, you can set your preferred color there.

Good Morning Fernando!

We located the problem. It's the Elementor popup. As soon as we deactivate the popup, the page is displayed correctly again.

See test page with active popup here: https://relaunch.hello-world.net/jakobswegreisen-shop/

Live page with deactivated popup see here: https://www.hello-world.net/jakobswegreisen-shop/

Even if we deactivate the background color of the Elementor popup, the display error does not go away.

However, the problem is that we desperately need the Elementor popups.

Can you help us to solve the problem?

Hi there,

Elementor is adding this CSS to your site:

.elementor-kit-55029 {
    --e-global-color-primary: #6EC1E4;
    --e-global-color-secondary: #54595F;
    --e-global-color-text: #7A7A7A;
    --e-global-color-accent: #61CE70;
    --e-global-typography-primary-font-family: "Roboto";
    --e-global-typography-primary-font-weight: 600;
    --e-global-typography-secondary-font-family: "Roboto Slab";
    --e-global-typography-secondary-font-weight: 400;
    --e-global-typography-text-font-family: "Roboto";
    --e-global-typography-text-font-weight: 400;
    --e-global-typography-accent-font-family: "Roboto";
    --e-global-typography-accent-font-weight: 500;
    background-color: #FFFFFF;
}

And that elementor-kit-55029 class is attached to the body tag, so its background-color: #FFFFFF; overrides the themes CSS. I assume that color is defined here in Elementor:

https://elementor.com/help/background-site-settings/

If not, your quickest and easiest fix would be to add this CSS to your site:

body {
    background-color: var(--base-2) !important;
}

This will stop Elementors CSS from overriding the body color.

Thank you David. That was indeed the problem.

Happy to be of help!

Have you seen my private message/question yet?

Done... :)

Thank you for the helpful support over the years. Best regards to the entire team and all the best for 2023.

This archived topic is closed to new replies.