Archived topic
Unable to change text colour
9 replies · Started by Pamela on September 27, 2021
I can't figure out why the text on my Contacts page refuses to be any colour other than white.
Notes:
- I can't see anything in my CSS that would do this, but it's possible that's where the problem is.
- The home page has the teal-on-white writing that I want on Contacts.
- Clearing the lightspeed cache and deactivating the plugin did not help.
- These are paragraph blocks with text set per block. (I use GP Premium with GenerateBlocks Pro.)
- The text goes black when I switch to 2021 default theme.
It seems like it has to be a simple thing, but I can't for the life of me figure out what's gone wrong.
Hi Pamela,
I've checked the page's source code and it seems to be coming from a customizer setting.
Can you check on Appearance > Customize > Colors > Content and see if the text is set to white?
The content text colour is white, but I set that to make something else work.
The home page and posts have manually changed text colour. What’s different about Contact?
I just can’t see it.
As for the homepage:
The home page font color comes from a plugin. The paragraph is placed using a GB Headline block and it's using the font color that is set on it.
As for the posts:
The posts uses a custom CSS on your site like this one:
p.intro {
font-style: italic;
color: #38408e;
font-weight: 500;
}
As for the Contact page:
The contact page is using the default paragraph block.
Its text color inherits directly from the customizer setting as there's no Container block color set on it or its parent Container block. :)
Thank you. I did try setting a text color for both of the containers that that text is in, but that didn’t change anything.
The paragraph block appears to have a colour option over in the settings now. (I don’t think it used to.) But now that you mention it, I do remember having to use headline blocks in lots of places to add colour when I set up the site.
I’ll try changing them to heading blocks in the morning and see if that helps.
Very appreciative of your help as always, Elvin.
The paragraph block appears to have a colour option over in the settings now. (I don’t think it used to.) But now that you mention it, I do remember having to use headline blocks in lots of places to add colour when I set up the site.
The default color settings of WordPress core blocks aren't reliable, unfortunately.
I’ll try changing them to heading blocks in the morning and see if that helps.
Consider replicating the one done on Home page. :) Let us know how it goes. :D
No joy. Making it a headline block with a text colour did not override the text colour. New information:
- I duplicated the page, deleted the container that contains the problem text, and started with a new container, and the same thing happens.
- Then I made a new page, created a container, gave it a background and text colour, created a paragraph using paragraph block, and it worked fine.
- I went back to my duplicated test page and deleted the content. From that, I determined that the problem creeps in as soon as I set up either a grid or columns.
Is this a known thing? I've used other grids in the past without issue.
For the moment, I have the Contact page working by applying CSS to the paragraphs that shouldn't be white. But I'd rather it worked without that extra step.
Hi Pamela,
Since you are using GB headline block, you should NOT need CSS to set the text coloror font weight.
As you can see, the color keeps even I disabled your CSS:
https://www.screencast.com/t/qNuEJOhlbU4
I don't know what's different now, Ying, but it does indeed seem to be working as designed.
Thank you very much!
You are welcome :)
Glad it's working!