Home › Forums › Legacy Support › Support queries › Styling issues › Hiding 'Total number of students in course'
- This topic has 8 replies, 2 voices, and was last updated 8 years, 1 month ago by Skywalker [ ex VibeThemes].
Viewing 9 posts - 1 through 9 (of 9 total)
-
AuthorPosts
-
November 9, 2016 at 11:03 am #78787adrianlawsonParticipantHi support Please can you help me hide the 'Total number of students in course' at the top of the single course page when clicking 'Members'. Also to hide the right hand sidebar widget/reference to numbers in course. I can't see this in the widgets area so must be coming from somewhere else? Please see screenprint: http://prntscr.com/d5163b Thanks in advance.November 9, 2016 at 12:30 pm #78815Skywalker [ ex VibeThemes]ParticipantGO to wp-admin->appearance->add custom CSS->add these lines and SAVE. .single-course #buddypress div#item-body {display:none !important;} .single-course #buddypress .students_undertaking {display:none !important;} .single-course .widget.buddypress.widget { margin-top: 20px !important;}November 9, 2016 at 1:35 pm #78832adrianlawsonParticipantHi Skywalker Thanks for this. It has removed the sidebar widget/reference to student numbers. It has also removed the total number of students at the top of the page but with the knock on effect being that none of the tabs show anything at all now. Please see screen shot. I've clicked on 'members' for this shot but none of the tabs show any content. http://prntscr.com/d532o1 Please can you help me further. ThanksNovember 9, 2016 at 3:12 pm #78865adrianlawsonParticipantHi Skywalker As an update to my above reply. The 'groups' and 'forums' tabs strangely have content now. The others still don't though. ThanksNovember 10, 2016 at 2:50 pm #79052Skywalker [ ex VibeThemes]ParticipantCan you please elaborate your issue?November 10, 2016 at 3:17 pm #79058adrianlawsonParticipantHi Skywalker I'll give it a go! A) Looking at this screenshot http://prntscr.com/d5163b - when I put in the code it does remove the '4 students enrolled' and avatars (highlighted on the right) from the sidebar which is great. This line of code is what fixes this issue .single-course #buddypress .students_undertaking {display:none !important; } B) Looking at this screenshot http://prntscr.com/d532o1 - with the addition of the other two lines of code it also removes all of the content under each tab except for 'groups' and 'forums' which is not great. Along with the piece removed at 'A' all I wanted removed was the 'Total number of students in course' line highlighted at the top of this screenshot http://prntscr.com/d5163b. The list of members can stay and of course I still want the content under the other tabs. I hope this helps!November 11, 2016 at 8:02 am #79155Skywalker [ ex VibeThemes]ParticipantOh sorry for the inconvenience caused. Remove the css i previously gave you. Use this instead, it will fix your issue. .single-course #buddypress .students_undertaking {display:none !important; } .single-course #buddypress div#item-body .total_students,.course_students {display:none !important;}November 11, 2016 at 1:50 pm #79288adrianlawsonParticipantHi Skywalker Thanks for this. The second piece of code took out the members with their avatars too and not just that top line 'Total number of students in course'. Maybe it can't be done? However, I've decided to hide members in courses via LMS/settings/hide members section in single course page. My users will be able to access other registered users and add them as friends for example via groups. I'll come back to you if I change my mind! Thanks very much for your help.November 12, 2016 at 7:11 am #79367Skywalker [ ex VibeThemes]Participant#CHEERS
-
AuthorPosts
Viewing 9 posts - 1 through 9 (of 9 total)
- The topic ‘Hiding 'Total number of students in course'’ is closed to new replies.