I'd like to switch theme per user upon user login success in my drupal 6 site. I need to check username of a particular user to change a particular theme for that user.
Is there any module around to accomplish this? Or, do I have to write a hook like

function mymodule_init(){
    global $custom_theme;
    global $user;
    // check username here. 
    $custom_theme = 'garland';

But, I'm finding a module which have admin interface so that I can define usernames as much as I can.


Try the Themekey module which allows content, user, or role -specific themes.

  • The optional module ThemeKey User Profile that comes with theme key allows per user based theme. – Anil Sagar Sep 12 '12 at 7:09

Why not use the Role Theme Switcher module?

Considering you have a limited number of themes and you can combine roles for a user, why not creating one specific role per theme that you will assign to your users.

  • Can I change theme per user of the same role? – Sithu Sep 12 '12 at 7:03
  • Role theme switcher allows theme by role.. So obviously you cannot change theme per user of same role... – Anil Sagar Sep 12 '12 at 7:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.