Notifications
Clear all
Topic starter
18/06/2018 1:00 am
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?
Topic starter
18/06/2018 1:08 am
18/06/2018 2:11 pm
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;
}
Topic starter
18/06/2018 9:20 pm
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.
Topic starter
19/06/2018 12:09 am
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?
Topic starter
19/06/2018 12:27 am
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)?
20/06/2018 12:25 pm
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).