• Resolved roberto21

    (@roberto21)


    I am experimenting with FSE in my local environment (laragon, twenty-.twentyfour theme, wp 6.2), and I ran intio a strange problem: I created two templates, with completely identical structure, different only in the cover image. Both templates have a heading (H2) and content. For reasons completely obscure (to me), one template has heading and contents in white, the other has heading and contents in black. I did not touch anything in the theme style, the two templates are absolutely identical, and I don’t understand what is going on. If I replace the cover image in the “white” template with the image used in the “black” template, heading and contents revert to black, so the color seems to change with the image. Is this normal? Is this behavior explained somewhere? I apologize for the naive question…

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is likely due to how the Cover block handles color contrast in WordPress themes. The Twenty Twenty-Four theme (and several others) uses dynamic text color adjustments to ensure readability. When you add a new cover image, WordPress automatically adjusts the text color based on the image’s brightness or darkness to keep the text readable.

    To control this behavior, check the Cover block’s (https://ww.wp.xz.cn/documentation/article/cover-block/) settings sidebar, where you can manually set the text color for headings and content to avoid automatic contrast changes based on images.

    Thread Starter roberto21

    (@roberto21)

    Thank you very much. This makes sense, I did not know about then dynamic color correction. I’ll correctn the color manually, as you suggested. Thanks again

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

The topic ‘text changing color?’ is closed to new replies.