• Resolved steveforeman

    (@steveforeman)


    When the site installed 5.3.10, all Group blocks with a background colour set had their text colour (and ds-go text colour) set to white when in “normal mode”. This rendered text almost unreadable. In dark mode, the text remained white, but the background colour darkened to make the text readable.

    I have turned off dark mode on our live site. You can still see the effect on our staging site (which contains out of date information). https://547022.eu11.myftpupload.com/

    Is there a setting I need to change in WP Dark mode, or is it a bug?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Md. Ibrahim Khalil

    (@mdibrahimk48)

    Could you please try the following steps?

    1. Enable WP Dark Mode → Settings Advanced → Performance → Exclude WP Dark Mode from Caching.
    2. If you’re using any caching plugin (or server/CDN cache), please clear all caches. And finally, perform a hard refresh of your browser: ( Windows: Ctrl + F5 / Mac: Cmd + Shift + R )

    If the issue still persists, please add the following custom CSS in Appearance → Customize → Additional CSS, then save the changes and check again:

    .pt-cv-view .pt-cv-ifield, p {
    color: black !important;
    }

    Please let us know the result, and we’ll be happy to investigate further if needed.

    Plugin Support Toukir Hossain

    (@toukirwpdev)

    We dug into this further on your staging site and was able to isolate the exact cause.
    We can confirm this is not coming from WP Dark Mode. When the issue appears, WP Dark Mode isn’t injecting any CSS (no <style class="wp-dark-mode"> tags are present, and the dark mode toggle remains in the Off state).

    Using the browser’s DevTools, I disabled each declaration in the matching CSS rule one by one to identify which one was responsible:

    :is(.wp-block-designsetgo-section, .wp-block-group, .wp-block-column).has-background :not(:is(.has-white-background-color, .has-black-background-color)) :not(.has-text-color):not(.is-style-footer-section):not(.is-style-header-section), .wp-block-cover:not(.has-text-color) { color: var(--wp--preset--color--white) !important; /* ← This is the cause */ --dsgo-text-color: var(--wp--preset--color--white); /* Not the cause */ }

    The results were conclusive:

    • Disabling only --dsgo-text-color had no effect—the text remained white.
    • Disabling only color: var(--wp--preset--color--white) !important; immediately restored the correct text color.

    So the issue is specifically caused by that single color declaration.
    The var(--wp--preset--color--white) value itself comes from WordPress’s Global Styles color palette (theme.json / Appearance → Editor → Styles → Colors).

    However, the CSS rule applying it with !important originates from your theme or the DesignSetGo plugin (the adjacent --dsgo-* variable strongly suggests DesignSetGo).

    Because the color is sourced from WordPress core’s Global Styles system, it may also be worth checking with the DesignSetGo/theme developer whether their CSS has been tested against your current WordPress version, or whether any recent changes to your theme, theme.json, or Global Styles palette introduced this behavior.

    How to fix:
    Recommended (per block):
    Edit each affected Group block, open the Color settings, and assign an explicit Text Color. Once the block has the .has-text-color class, this CSS rule no longer applies.

    Site-wide workaround: Add the following under Appearance → Customize → Additional CSS

    :is(.wp-block-designsetgo-section, .wp-block-group, .wp-block-column).has-background:not(:is(.has-white-background-color, .has-black-background-color)):not(.has-text-color) { color: var(--wp--preset--color--dark, #222) !important; }

    Permanent fix:
    The theme/DesignSetGo should update this rule so that it only forces white text when the background is actually dark, rather than on every block with a custom background color. They may also want to verify compatibility with the current WordPress Global Styles implementation.

    Based on our testing, there are no changes needed in WP Dark Mode. The page renders the same whether the plugin is enabled, disabled, or completely inactive, confirming that the issue originates from the theme/DesignSetGo CSS rather than WP Dark Mode.

    Thanks for your understanding.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.