Introduction
LearnDash course pages include a search bar by default, which may not be necessary for all courses. This guide explains how to remove the search bar in LearnDash course pages, giving your course pages a cleaner and more focused layout.
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:
.bb-courses-header {
display: none;
}- Click Save Changes.
Troubleshooting and FAQs
Q: The search bar is still showing after adding the CSS.
A: Clear your site cache and browser cache, then reload the course page.
Q: Will this affect other pages on my site?
A: No. This only hides the search bar on LearnDash course pages.
Q: Can I restore the search bar later?
A: Yes. Remove the CSS code and save your changes.