[Resolved] How to change Comment author color and font weight

Home Forums Support [Resolved] How to change Comment author color and font weight

Home Forums Support How to change Comment author color and font weight

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1526269
    Alexandra

    Hey guys!

    I’m trying to change the Comment author color and font weight.
    I know that linked Comment author names inherit their color from the Body Link color, but is there a way to override that?

    Here is a sample post with both linked and unlinked Comment author names: https://alex.bandiwork.dev/2018/12/romania-m-mehedinti-domogled-iulie-2018.html

    I want to have the same color and font weight (for example #3d3d3d and weight 300) for Comment author names regardless of them being linked or not.
    Is that possible?
    Thank you so much!

    #1526432
    David
    Staff
    Customer Support

    Hi there,

    try adding this CSS:

    .comment-author {
        color: #72a530;
    }
    #1527702
    Alexandra

    Hi, David!
    I apologise, I was probably ambiguous in my explanation.
    I don’t want the green color for comment authors, I want to have #3d3d3d as the unique color for all comment authors, and I also need to change the font weight.

    I tried adding

    .comment-author {
        color: #3d3d3d;
        font-weight: 300
    }

    but that changes nothing.
    Is there a way to achieve this?
    Thank you so much!

    #1527716
    Elvin
    Staff
    Customer Support

    Hi,

    Try this selector:

    .comment-author cite, .comment-author cite * {
        font-weight: 300;
        color: #3d3d3d;
    }

    Some comments have authors that doesn’t have profile links to their names. But some do, so we add .comment-author cite * so it styles regardless if there’s profile link or not.

    A wise man once said:
    "Have you cleared your cache?"

    #1527830
    Alexandra

    Hi, Elvin! ๐Ÿ™‚
    That is EXACTLY what I needed!
    Thank you SO much for this!

    #1527832
    Elvin
    Staff
    Customer Support

    That is EXACTLY what I needed!
    Thank you SO much for this!

    Nice one.

    No problem. Glad to be of any help. ๐Ÿ™‚

    A wise man once said:
    "Have you cleared your cache?"

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.