CSS for Posted Comments on Blog Posts

Hi,

I’ve managed to find some CSS to change the styling of the comments section on my blog. But when comments are posted they look different to the submit comment form. Here’s a link to my website so you can see what I mean (comments at bottom of post)…

https://thelofttapes.com/using-automation-to-bring-your-mixes-to-life/

I would like to do the following if at all possible:

  1. Change the background colour of posted comments to be white (same as comment form)
  2. Change the font colour for the Comments header to #43464B (same as the Blog Post Title)
  3. Remove the shadow on the Post Author icon next to the comments, and remove the shadow on the Post Author text beneath my reply comment
  4. Remove ‘Website’ from the comment form submission

Any help would be really appreciated!

Cheers
Mikey

Hi There,

Thanks for writing in!

Please use this CSS to make the changes in the comment box.

article.comment {
background: #fff !important;
box-shadow: none;
}
.x-comment-author {
color: #43464B;
}
.x-comment-img .avatar-wrap:before {
box-shadow: none;
}
.x-comment-img .bypostauthor {
text-shadow: none;
}
.comment-form-url {
display: none;
}

Hope this helps!

If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.

I recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/css/

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Thanks.

Thanks so much, that worked perfectly!

The videos look really useful, i’ll be sure to watch them, thanks!

Cheers
Mikey

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.