hide sidebar in free units and preview units.

Home Forums Legacy Support Support queries Styling issues hide sidebar in free units and preview units.

Tagged: , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #79914
    dantwah
    Spectator
    When an instructor is creating a unit and wants to see a preview it is directed to a screen that shows the sidebar of the course page. I would like to hide this sidebar as it is distracting instructors. How can I deleter or hide this sidebar? See attachment for picture.    
    #80065
    go to wp-admin->plugins->editor->wplms customiser->find wplms-customiser.php   add these lines and save.   add_action('wp_head','remove_sidebar_free_units'); function remove_sidebar_free_units(){ if(is_singular('unit')){ add_filter('wplms_sidebar', function($x){return"";}); } }
    #81015
    dantwah
    Spectator
    Thanks so much this seems to do the trick!
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘hide sidebar in free units and preview units.’ is closed to new replies.