How to customize the student and teacher dashboard

Home Forums Legacy Support Support queries How-to & Troubleshooting How to customize the student and teacher dashboard

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #327539
    lubeto
    Spectator
    Hello, good day, could you tell me how to customize the student and teacher dashboard, I need to insert a background image and customize the icons in the side menu. Thank you so much. https://prnt.sc/vtz37e
    #327604
    Ada
    Participant
    This reply has been marked as private.
    #327928
    lubeto
    Spectator
    Thank you very much for your valuable help, I have another question, is there a way to use a different image for the student dashboard and another for the teacher?
    #328062
    Ada
    Participant
    This reply has been marked as private.
    #328158
    lubeto
    Spectator
    This reply has been marked as private.
    #328193
    Diana
    Participant
    This reply has been marked as private.
    #328287
    lubeto
    Spectator
    This reply has been marked as private.
    #328293
    lubeto
    Spectator
    This reply has been marked as private.
    #328427
    Ada
    Participant
    I made a little change in the previous code .Please use this code in wplms-customizer.php
    function custom_background_image(){
      $user = wp_get_current_user();
      if ( in_array( ‘instructor’, (array) $user->roles ) ) {
      //The user has the “Instructor” role
      ?>
      <style>
       #vibebp_member .profile_grid  {
        background-image:url(URL of background image for
        teacher);
        background-size: cover;
        background-repeat:no-repeat;
        }
      </style>
      <?php
     }
     elseif (in_array( ‘student’, (array) $user->roles ))
     { //the user has the “student” role
      ?>
      <style>
       #vibebp_member .profile_grid  {
        background-image:url(URL of background image for student);
        background-size: cover;
        background-repeat:no-repeat;
       }
      </style>
      <?php
      }
    
    }
    add_action(‘wp_head’, ‘custom_background_image’);
    https://prntscr.com/vxahzw
    #328826
    lubeto
    Spectator
    This reply has been marked as private.
    #328894
    Diana
    Participant
    Dear User, If you can share your site URL with admin credentials in a private reply here. I can try adding the code on your site and will check and let you know Do mark your reply as private while sharing
    #328906
    lubeto
    Spectator
    This reply has been marked as private.
    #328992
    Diana
    Participant
    This reply has been marked as private.
    #329031
    lubeto
    Spectator
    This reply has been marked as private.
    #329039
    Diana
    Participant
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 19 total)
  • The topic ‘How to customize the student and teacher dashboard’ is closed to new replies.