Change colour scheme based on Access level

Hi, I am using WPMU membership plugin with WPLMS theme to create various access levels.

How can I :

1. Change the color scheme based on the membership access level.For example I have 2 membership levels: FREE and PREMIUM

If User1 belongs to FREE access level , when he logs in, he should see Google Logo and Google Branded colour scheme

If User2 belongs to PREMIUM access level, when he logs in, he should see Amazon logo and Amazon branded colour scheme.

How can we achieve this?Please advice at the earliest.

Thanks

  • Vinod Dalvi

    Hi Raghu,

    I hope you are well today and thank you for your question.

    To achieve this you will have to develop custom code. You can use the membership function current_user_on_level as following by passing membership access level id to it which will return true or false result based on whether the current logged in users has passed membership level assigned or not.

    if( function_exists('current_user_on_level') && current_user_on_level( $level_id )  ){
    // Your custom code here.
    }

    Then you can include the code in this condition which will change the colour scheme of that users having that membership access level.

    Please advise if you have more questions.

    Best Regards,
    Vinod Dalvi

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.