AI Assistant
Notifications
Clear all

Changing comment box color for comment author

4 Posts
2 Users
0 Reactions
3,084 Views
(@hiyooo)
Active Member
Joined: 8 years ago
Posts: 8
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
  [#2260]

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: 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  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: 8 years ago
Posts: 8
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
 

@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: 8 years ago
Posts: 8
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
 

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