Re: default theme depending on profession?
Hello qprints, if I understand, you could do something like:
– Add a profile field called “Proffession” in the profile settings of buddypress.
– And in your theme, depending on the value each user has on the “Proffession” field, enqueue a css that overwrites the default css and does what it needs. Example:
`
// Get Profile Field value for the $user_id specified and the field name specified
if ( xprofile_get_field_data( “Proffession” , $user_id) == “Engineer” ); {
// Enqueue the css
wp_enqueue_style (‘engineer-style’,’css/engineer.css’);
}
`
Hope it helps…