Home › Forums › Legacy Support › 4.0 Bugs & Issues › Hide Tabs from Student Dashboard and Course
- This topic has 9 replies, 3 voices, and was last updated 3 years, 4 months ago by Veronica.
-
AuthorPosts
-
November 20, 2020 at 6:20 am #325610stanleyngpm_515ParticipantHi I would like to request for css code to hide some tabs
Under student dashboard refer to https://prnt.sc/vmluvh I want to hide My Quizzes, My Assignments and Notes & Reviews
When under student dashboard viewing individual course refer to https://prnt.sc/vmlvl8 I want to hide Annoucements & News, QnA, Notes
Under Settings refer to https://prnt.sc/vmlwwu I want to hide Profile Field Visibility tab
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"
November 21, 2020 at 3:07 pm #325903DianaParticipantThis reply has been marked as private.November 25, 2020 at 2:07 am #326360stanleyngpm_515ParticipantHi please kindly provide codes with point 1 and point 2. point 3 hide for all users. point 4 .. I will use the translation plugin.November 26, 2020 at 6:53 pm #326736DianaParticipantPoint 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;}November 27, 2020 at 8:06 am #326782stanleyngpm_515ParticipantHi 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 screenshotNovember 27, 2020 at 6:22 pm #326925DianaParticipantPoint 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 notDecember 1, 2020 at 12:46 pm #327426stanleyngpm_515ParticipantYes point 3 is working great! Thanks. Any css code for point 1 will be good tooDecember 3, 2020 at 12:01 pm #327867DianaParticipantPlease check this topic in an hour Add this code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php
Both Point 1 & 2 Coveredadd_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 } }
December 7, 2020 at 1:17 am #328359stanleyngpm_515ParticipantThanks please close the ticket.December 7, 2020 at 9:55 am #328417VeronicaModeratortopic closed -
AuthorPosts
- The topic ‘Hide Tabs from Student Dashboard and Course’ is closed to new replies.