Introduction
BuddyBoss does not offer a built-in option to hide individual lessons in the course sidebar. You can use a simple CSS snippet to selectively hide lessons from the sidebar while keeping the rest of your course content visible.
Custom Workaround
Follow these steps to hide lessons on the course sidebar:
- Go to BuddyBoss > Theme Options
- Under Custom Codes, enable CSS
- Add the following CSS code:
.bb-single-course-sidebar .bb-course-volume-list li:nth-child(2) {
display: none;
}You can adjust the nth-child() value to hide other lessons as needed.
- Click Save changes
Troubleshooting and FAQs
Q: The lesson is still visible, what should I do?
A: Double-check that the CSS is added under BuddyBoss Theme Options, that CSS is enabled, and clear your site or browser cache.
Q: Can I hide multiple lessons?
A: Yes. Add additional CSS rules targeting different nth-child() values for each lesson you want to hide. For example:
.bb-single-course-sidebar .bb-course-volume-list li:nth-child(3) { display: none; }
.bb-single-course-sidebar .bb-course-volume-list li:nth-child(5) { display: none; }
Q: Will this hide lessons on the main course content page?
A: No. This only affects the course sidebar navigation.
Q: Can this be undone?
A: Yes. Remove or comment out the CSS snippet and save changes to restore the lessons in the sidebar.