1. Home
  2. Knowledge Base
  3. Customizations
  4. CSS
  5. How to Remove Margin Between Course Header and Course Topic Title

How to Remove Margin Between Course Header and Course Topic Title

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.

  1. Go to BuddyBoss > Theme Options in your WordPress admin dashboard
  2. Open the Custom Codes section
  3. Enable CSS
  4. Add the following CSS code:
div.bb-lms-header .bb-position {

    margin-bottom: 0;

}
  1. Click Save Changes

Note: Modifications are typically considered custom work, but we are making an exception in this case. Please review the BuddyBoss Support Policy.

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.

Was this article helpful?

Related Articles

Subscribe to Our Newsletter

Stay In Touch

Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss

This field is for validation purposes and should be left unchanged.
This field is hidden when viewing the form

To speak to our Agency consultant, fill in the form found at our Contact Page.