Notifications
Clear all

Changing comment box color for comment author

4 Posts
2 Users
0 Reactions
2,627 Views
(@hiyooo)
Active Member
Joined: 7 years ago
Posts: 8
Topic starter  

I know there's an option to change username color by role.

How about comment box?

https://imgur.com/a/F5kzD07

I hope there are two configurations to change comment box color for post author.


   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6193
 

Hi  hiyooo,

Every role in wpDiscuz code has its own classes  (.wc-blog-post_author, .wc-blog-guest, .wc-blog-editor, .wc-blog-subscribe etc.). You can use them to create your custom CSS codes. 

e.g. :

#wpcomm.wc-blog-author.wc-comment-label{ 
background-color: #331c1c !important;
}

After you write your custom codes you should put your custom code in Dashboard > Comments > Settings > Styling admin page  “Custom CSS Code” textarea.


   
ReplyQuote
(@hiyooo)
Active Member
Joined: 7 years ago
Posts: 8
Topic starter  

@astghik

That code you gave me is just label for author under username. I mean the comment box itself.

https://imgur.com/a/F5kzD07


   
ReplyQuote
(@hiyooo)
Active Member
Joined: 7 years ago
Posts: 8
Topic starter  

Box 1 for css code :

#wpcomm .wc-blog-post_author > .wc-comment-right .wc-comment-header {Background-color : # }

Box 2 for css code :

#wpcomm .wc-blog-post_author > .wc-comment-right .wc-comment-text, #wpcomm .wc-blog-post_author > .wc-comment-right .wc-comment-footer{background-color: #}

I hope it would be reflected in future updates.


   
ReplyQuote
Share:
Scroll to top