Introduction
BuddyBoss adds default spacing between the course header and course topic title in LearnDash courses. You can remove this margin by adding a small CSS rule to your theme settings. This guide explains how to remove margin between course header and course topic title.
Custom Workaround
Before proceeding, make sure you have a complete site backup.
- Go to BuddyBoss > Theme Options in your WordPress admin dashboard
- Open the Custom Codes section
- Enable CSS
- Add the following CSS code:
div.bb-lms-header .bb-position {
margin-bottom: 0;
}- Click Save Changes
Troubleshooting and FAQs
Q: The spacing did not change.
A: Clear your browser cache and reload the course page to see the updated styles.
Q: Will this affect other elements on the site?
A: This only affects course headers and topic titles in LearnDash courses.
Q: Can I increase spacing instead?
A: Yes, replace 0 in the margin-bottom value with any pixel, em, or rem value you prefer.