Introduction
By default, BuddyBoss does not provide an option to hide the site header. Using a CSS snippet, you can completely remove the header from your site, which is useful for landing pages, custom layouts, or distraction-free content pages.
Custom Workaround
Follow the steps below to hide the site header:
- Go to BuddyBoss > Theme Options
- Under Custom Codes, enable CSS
- Append the following:
.site-header.site-header--bb {
display: none !important;
}- Save changes.
Troubleshooting and FAQs
Q: Will this hide the header on all pages?
A: Yes. This CSS hides the header site-wide.
Q: Can I hide the header only on specific pages?
A: Yes. Use the page ID in the CSS selector, for example:
.page-id-123 .site-header.site-header--bb { display: none !important; }Q: The header is still showing after adding the code. What should I do?
A: Clear your site cache and browser cache. If it still appears, submit a ticket to the support team for assistance.
Q: Will this affect mobile views?
A: No. The snippet works on both desktop and mobile views.
Screenshots
With code