Hiding 'Total number of students in course'

Home Forums Legacy Support Support queries Styling issues Hiding 'Total number of students in course'

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #78787
    adrianlawson
    Participant
    Hi 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.
    #78815
    GO 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;}
    #78832
    adrianlawson
    Participant
    Hi 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. Thanks  
    #78865
    adrianlawson
    Participant
    Hi Skywalker As an update to my above reply.  The 'groups' and 'forums' tabs strangely have content now.  The others still don't though. Thanks
    #79052
    Can you please elaborate your issue?
    #79058
    adrianlawson
    Participant
    Hi 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!
    #79155
    Oh 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;}
    #79288
    adrianlawson
    Participant
    Hi 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.
    #79367
    #CHEERS
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Hiding 'Total number of students in course'’ is closed to new replies.