Hi,
I’m working on a community where answers can come from both regular users and experts in the specific area and I want to make it clear when it is an expert, editor or regular user. My thought is just to make a different background color or make some icon on one of the sides so all I really need is to append some CSS CLASS tag to the regular class’.
E.g. when it is an admin that has answered, the CLASS could look something like this:
qa-a-list-item hentry answer admin-answer
and for an expert something like this
qa-a-list-item hentry answer expert-answer
and so on, and so on.
I’ve tried to make an override function in my ga-theme.php file with a_count($post) but I’m not sure how to check to see which type of user role it is and then append some class to the normal class attributes.
Hope someone could help me with this.
Thank you
Sincere
- Emil