Introduction
By default, BuddyBoss does not include a built-in option to hide the LearnDash course status on the course page. If you prefer not to display the course status message, such as “Not Enrolled,” you can hide it using a custom CSS snippet.
Custom Workaround
Follow the steps below to hide the course status on the course page:
- Go to BuddyBoss > Theme Options
- Under Custom Codes, enable CSS
- Append the following code:
.learndash-wrapper .ld-course-status.ld-course-status-not-enrolled {
display: none !important;
}- Save changes
Troubleshooting and FAQs
Q: Will this hide the course status for enrolled users as well?
A: No. This CSS specifically targets the “Not Enrolled” course status message. Other course status messages will remain visible.
Q: Does this affect all courses on my site?
A: Yes. This will apply to all LearnDash course pages that use the default course status markup.
Q: The course status is still showing after adding the CSS. What should I do?
A: Try clearing your browser cache and any site or plugin caching. If the code is not working, submit a ticket to the support team for assistance.
Q: Can this be limited to a specific course only?
A: Not with this exact snippet. Targeting a specific course would require additional selectors or custom development.