Hide header when logged into courses

Home Forums Legacy Support Support queries How-to & Troubleshooting Hide header when logged into courses

Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #77305
    bpbezerra
    Spectator
    Hi, how can I hide the header when a student logs into the website? I would like the student to see only the course content, so he or she doesn't get out of the learning environment.
    #77494
    H.K. Latiyan
    Participant
    Add the bellow code in your wplms-customizer.php file present in your wplms customizer plugin ( wp-admin->plugins->editor->select wplms customizer plugin->wplms-customizer.php file ). add_action('wp_head','custom_hide_header_logged_users'); function custom_hide_header_logged_users(){   if(is_user_logged_in()){     ?>     <style>header {display:none;}</style>     <?php   } }
    #278523
    Adam
    Spectator
    Does not work in 2020.
    #278559
    Diana
    Participant
    I can share custom CSS fix if you will share the site URL
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Hide header when logged into courses’ is closed to new replies.