Skip to:
Content
Pages
Categories
Search
Top
Bottom

default theme depending on profession?

  • @qprints

    Member

    Hi

    I’d like users that sign up to my wordpress multi site to get a wordpress theme depending on their profession, ideally they would select their profession from a dropdown list at signup and their associated theme would be used automatically

    Is that possible?

    Thanks
    Dave

Viewing 1 replies (of 1 total)
  • @wizard_clp

    Member

    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…

Viewing 1 replies (of 1 total)
  • The topic ‘default theme depending on profession?’ is closed to new replies.
Skip to toolbar