Notifications
Clear all

[Solved] How to add verified batch after author name in comment area?

7 Posts
2 Users
0 Likes
1,377 Views
(@cnpatel)
Active Member
Joined: 6 years ago
Posts: 18
Topic starter  

I have code for below condition:

If person who comments = author, then

#wc-author:after {
font-family: FontAwesome;
content: "\f058";
font-size:1.5rem;
font-weight: 400;
color: #4DB2EC;
padding: 0px 7px;
}

But how to make that condition?

   
Quote
(@cnpatel)
Active Member
Joined: 6 years ago
Posts: 18
Topic starter  
Capture

   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5911
 

Hi cnpatel,

Put this CSS code in Dashboard > Comments > Settings > Styling > "Custom CSS Code" textarea. 

.wc-blog-post_author .wc-comment-author:after {
font-family: FontAwesome;
content: "\f058";
font-size:1.5rem;
font-weight: 400;
color: #4DB2EC;
padding: 0px 7px;
}

   
ReplyQuote
(@cnpatel)
Active Member
Joined: 6 years ago
Posts: 18
Topic starter  

It works for only author who wrote the post. I wanted to make it work for all authors (!important), admins, editors, contributors; available on the website.


   
ReplyQuote
(@cnpatel)
Active Member
Joined: 6 years ago
Posts: 18
Topic starter  

I did this:

.wc-blog-author .wc-comment-author:after {
font-family: FontAwesome;
content: "\f058";
font-weight: 400;
color: #4DB2EC;
padding: 0px 7px;
}
.wc-blog-post_author .wc-comment-author:after {
font-family: FontAwesome;
content: "\f058";
font-weight: 400;
color: #4DB2EC;
padding: 0px 7px;
}

Any other way to make it short?


   
ReplyQuote
(@cnpatel)
Active Member
Joined: 6 years ago
Posts: 18
Topic starter  

and this for admin:

.wc-blog-administrator .wc-comment-author:after {
font-family: FontAwesome;
content: "\f058";
font-weight: 400;
color: #4DB2EC;
padding: 0px 7px;
}

Any other way to make it short  for All (authors , admins, editors, contributors)?


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5911
 

Hi cnpatel,

This is the way to do what you want. You need to write the CSS code for each role (authors, admins, editors, contributors).


   
ReplyQuote
Share:
Scroll to top