AI Assistant
Notifications
Clear all

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

7 Posts
2 Users
0 Reactions
2,105 Views
(@cnpatel)
Active Member
Joined: 8 years ago
Posts: 18
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#2548]

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: 8 years ago
Posts: 18
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
Capture


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6645
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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: 8 years ago
Posts: 18
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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: 8 years ago
Posts: 18
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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: 8 years ago
Posts: 18
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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: 8 years ago
Posts: 6645
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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