how to hide "Demo Switcher"

Home Forums Legacy Support Support queries How-to & Troubleshooting how to hide "Demo Switcher"

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #223660
    forzhang
    Participant
    Hi, How can I hide the "Demo Switcher" in the WPLMS to prevent other users to change the site's style by mistake? Thanks a lot.
    #223700
    logan
    Member
    Hello, only super admin can change the demos. other users cant see this. why would you give super admin role to others?? anyways: Please paste this snippets in your wp-admin >> plugins >> editor >> wplms-customizer plugin >> wplms-customizer.php  add_action('admin_init', function(){ if ( current_user_can( 'manage_options' ) ): ?> <style> .toplevel_page_wplms_options ul.wp-submenu a[href="admin.php?page=wplms_options&tab=12"] { display: none !important; } </style> <?php endif; });
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘how to hide "Demo Switcher"’ is closed to new replies.