"My Courses" tab and "Course Page" Styles

Home Forums Legacy Support Support queries Styling issues "My Courses" tab and "Course Page" Styles

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11693
    Kupka
    Spectator
    Hi, see required changes here: http://tinyurl.com/pef376v http://tinyurl.com/qf2hhh7 thanks a lot
    #11743
    Anshuman Sahu
    Keymaster
    Please try adding the given css from wp-admin -> appearance -> customize -> custom css : #course-list .item-meta { display: none !important; } .instructor_course { display: none; } For single course page : Add the given code in your wplms-customizer.php in wplms customizer plugin  : add_action('wp_footer','hide_events_members');   function hide_events_members(){   if(!is_user_logged_in() ||  !current_user_can('edit_posts') ){     echo '<style>li#members {               display: none !important;           }li#events {               display: none !important;           }</style>';   }   } It will hide members and events from students and non logged in users but show to instructors and admins . If you want it to show to admins only then refer the below code :   add_action('wp_footer','hide_events_members');   function hide_events_members(){   if(!is_user_logged_in() ||  !current_user_can('manage_options') ){     echo '<style>li#members {               display: none !important;           }li#events {               display: none !important;           }</style>';   }   }
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘"My Courses" tab and "Course Page" Styles’ is closed to new replies.