latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Custom CSS Class

Home Forums Community Forum Custom CSS Class

Tagged: , ,

This topic contains 0 replies, has 1 voice. Last updated by  Skyrie 3 years, 2 months ago.

Topic Author Topic
Posted: Monday Oct 21st, 2013 at 11:48 am #60497
Skyrie
Username: Skyrie

Hi all,

I want to give my premium members a special background image. How would I go about making BuddyPress give each user a custom CSS class on their profile page based upon their user role?

What I mean by that is that I can set a background color on all profile pages with something like:
body.bp-user {
background: #ccc;
}

But what I would like is to have a code that gives each user a custom class based on their role, so I could use a code such as:
body.s2-level-1

Or:
body.subscriber (WP default)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.