Archived topic
Changing the color of comment boxes
3 replies · Started by Jodie on February 25, 2019
Hi Tom, David and Leo
Hope you are all well.
I have been trying to work out how I can change the color of my comment boxes so that the reader leaving the comment box has a different color to the reply comment I write.
I am assuming it would be CSS but I have no idea what to do there.
Are you able to help me please?
Kind regards
Jodie
Hi there,
try this:
/* Parent color */
.comment .comment-content {
background-color: #efefef;
}
/* Replies color */
.comment ul.children .comment-content {
background-color: #f5f5f5;
}
You are a superstar David!! Thank you.
When I added your css to the Additional CSS in the Appearance section it said it there was an error in the color in the replies color section. I realised that there was no # before f5f5f5f.
Once I added that, all was well. (Just a tiny bit chuffed that that was the fix and didn't have to ask you!!
As always I really appreciate your help.
Kind regards
Jodie
Ooops...glad to be of help, and great to hear you figured it out :)