Hide Tabs from Student Dashboard and Course

Home Forums Legacy Support 4.0 Bugs & Issues Hide Tabs from Student Dashboard and Course

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #325610
    stanleyngpm_515
    Participant
    Hi I would like to request for css code to hide some tabs
    1. Under student dashboard refer to https://prnt.sc/vmluvh I want to hide My Quizzes, My Assignments and Notes & Reviews

    2. When under student dashboard viewing individual course refer to https://prnt.sc/vmlvl8 I want to hide Annoucements & News, QnA, Notes

    3. Under Settings refer to https://prnt.sc/vmlwwu I want to hide Profile Field Visibility tab

    4. I have set in WPLMS to allow user to retake course when finish and also set mine free courses to 9999 days which is unlimited, currently when student finishes a course the button changes to "Completed" https://prnt.sc/vmlxpb where can I change this to "Continue Course" or "Retake Course" likewise the word "Completed" under student dashboard for enrolled courses here https://prnt.sc/vmlza3 should change to "Continue Course" or "Retake Course"

    #325903
    Diana
    Participant
    This reply has been marked as private.
    #326360
    stanleyngpm_515
    Participant
    Hi please kindly provide codes with point 1 and point 2. point 3 hide for all users. point 4 .. I will use the translation plugin.
    #326736
    Diana
    Participant
    Point 1 & 2: Please ping here tomorrow I need toc check if any hook available or I have to hide it using custom css Point 3: Use this custom css .profile .profile_settings .setting_group {display: none !important;}
    #326782
    stanleyngpm_515
    Participant
    Hi Diana, Good afternoon. Point 1. Not yet solve .. waiting for css codes from you Point 2, Solved I used the css codes below: .course_manage .course_tabs .instructor_tabs :nth-child(3){ display:none !important } .course_manage .course_tabs .instructor_tabs :nth-child(4){ display:none !important } .course_manage .course_tabs .instructor_tabs :nth-child(5){ display:none !important } .course_manage .course_tabs .instructor_tabs :nth-child(6){ display:none !important } Point 3. The codes you provided not sufficient as it only hides the content but still show the empty box refer to screenshot https://prnt.sc/vr1ky2 I want a code that can remove the entire box including what is shown in this screenshot
    #326925
    Diana
    Participant
    Point 3: This CSS code will work for you .vibebp_myprofile .profile_settings .portal:nth-child(2){ display:none !important; } Refer: http://prntscr.com/vrevlw Point 1: Need to check action hook, otherwise the only option is to use custom css code Do confirm point 3 is working or not
    #327426
    stanleyngpm_515
    Participant
    Yes point 3 is working great! Thanks. Any css code for point 1 will be good too
    #327867
    Diana
    Participant
    Please check this topic in an hour Add this code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php
    
    add_action('wp_head','hide_tabs_student_profile');
    function hide_tabs_student_profile(){
    if(current_user_can('student'){
    ?>
    <style>
    #course_component a.menu-child.quiz_results, .assignment_results, .notes_reviews{
        display:none !important;
    }
    
    .course_manage .course_tabs .instructor_tabs span:nth-child(3), .course_manage .course_tabs .instructor_tabs span:nth-child(4), .course_manage .course_tabs .instructor_tabs span:nth-child(5){
        display:none !important;
    }
    <?php
    }
    }
    
    Both Point 1 & 2 Covered
    #328359
    stanleyngpm_515
    Participant
    Thanks please close the ticket.
    #328417
    Veronica
    Moderator
    topic closed
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Hide Tabs from Student Dashboard and Course’ is closed to new replies.