最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

post meta - How is the author's name given a different color?

programmeradmin5浏览0评论

Author's and visitors' names use the same color in comments.The point here is that the color of the author's name is different in the comments. For example, in visitor comments, name is red. But, the name of the site author should be gray. (Only in comments)

I know an ID needs to be added for the author's comments. However, I could not add this ID. Therefore, the style I gave in style.css does not work either.

I just tried this in css, but that didn't work.

ment-list .bypostauthor .fn {color: gray;}

How can I achieve this?

Author's and visitors' names use the same color in comments.The point here is that the color of the author's name is different in the comments. For example, in visitor comments, name is red. But, the name of the site author should be gray. (Only in comments)

I know an ID needs to be added for the author's comments. However, I could not add this ID. Therefore, the style I gave in style.css does not work either.

I just tried this in css, but that didn't work.

ment-list .bypostauthor .fn {color: gray;}

How can I achieve this?

Share Improve this question asked Oct 1, 2020 at 11:58 A. MullerA. Muller 439 bronze badges 0
Add a comment  | 

1 Answer 1

Reset to default 1

You wrote ment-list but that's not the class, it's mentlist. You may also need to target the anchor link inside that tag explicitly to override link colours

发布评论

评论列表(0)

  1. 暂无评论