Different color for rank
-
Hi
You can set those putting this JS in footer.php of your current active theme.<script type="text/javascript"> $(".wc-comment-label:contains('Guest')").css('background-color', 'blue'); $(".wc-comment-label:contains('Member')").css('background-color', 'red'); $(".wc-comment-label:contains('Admin')").css('background-color', 'green'); </script>Hi docteurdread,
We have just released new version of wpDiscuz, you could set different colors by ranks via Custom CSS Code in options page like this:#wpcomm .wc-blog-admin{ background: #f00; }
#wpcomm .wc-post-author{ background: #f00; }
#wpcomm .wc-blog-member{ background: #f00; }
#wpcomm .wc-blog-guest{ background: #f00; }Please, update.
HellO!
Love ur plagin so much, but still got this issue with admin post background color.
Ive updted, but this code#wpcomm .wc-blog-admin{ background: #f00; } #wpcomm .wc-post-author{ background: #f00; } #wpcomm .wc-blog-member{ background: #f00; } #wpcomm .wc-blog-guest{ background: #f00; }still doesnt work, even if to put to css file.
What could be wrong?Hi orgi,
Please try with “!important”:#wpcomm .wc-blog-admin{ background: #f00!important; } #wpcomm .wc-post-author{ background: #f00!important; } #wpcomm .wc-blog-member{ background: #f00!important; } #wpcomm .wc-blog-guest{ background: #f00!important; }Put this code in Dashboard > wpDiscuz > Background and Colors Tab in the “Custom CSS Code” textarea.
Hello!
Thnx for quick resnond, but still not working
http://i.imgur.com/L2IIPrn.png
and the result is the sameHave you removed the Javascript I given you here: https://wordpress.org/support/topic/different-color-for-rank?replies=5#post-6688148
If you don’t, just remove it.Also try this:
#wpcomm .wc-blog-admin{ background-color: #f00!important; } #wpcomm .wc-post-author{ background-color: #f00!important; } #wpcomm .wc-blog-member{ background-color: #f00!important; } #wpcomm .wc-blog-guest{ background-color: #f00!important; }If this doesn’t help, leave some example URL. It seems you have some css which conflicts with wpDiscuz.
Wait a minute!
But you were talking about different background-color for the ranks. Why you’re showing Usernames? We are trying to set diff backgrounds for user ranks not for username.
I’m sorry but there is not any way to set different font-colors for different usernames. That’s impossible. It’s only possible with User ranks/labels/badges.
Yes Im talking abt background, I just underlined the admin, hes still has the same bg as the others(
We were talking about User ranks/labels/badges background color
Screenshot: http://screencast.com/t/rOIdEY2hPMg6As far as I see you want to change whole comment background. I’m sorry but there is not a way to set different bg color of admins yet. We’ll add some classes in future releases.
Oh, I see. Sorry for missunderstanding! Again thnx for ur plagin!
good luck!Hi orgi,
Please update wpDiscuz to 2.2.2. With this version you can use this css code:#wpcomm .wc-blog-admin .wc-comment-right{ background-color: #f00!important; } #wpcomm .wc-post-author .wc-comment-right{ background-color: #f00!important; } #wpcomm .wc-blog-member .wc-comment-right{ background-color: #f00!important; } #wpcomm .wc-blog-guest .wc-comment-right { background-color: #f00!important; }HellO!
Thnx so much! It works right now))
You’re welcome!
Hope you’ll leave some good comment on wpDiscuz plugin review section.I did))) Thnx fo r the great job!
But I faced up with another issue))) All the responses to the post author come in the same color.
The topic ‘Different color for rank’ is closed to new replies.
(@docteurdread)
11 years, 2 months ago
Hi !
I created a blog and I use this great plugin for the comments. All is ok but I just want to have a different background-color for the ranks.
You can see here that a member and an admin have the same color: red, that I set in the settings of plugin. But I want a different color for the members: green.
Picture !
Thanks a lot !
https://wordpress.org/plugins/wpdiscuz/