Introduction
The BuddyBoss Platform does not offer an option to hide the Shopping Cart and Search icons for users who are not logged in. This guide explains how to remove the Shopping Cart and Search icons for logged-out users, ensuring that logged-out users see a cleaner header without these elements.
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:
body:not(.logged-in) .header-aside-inner a.header-search-link,
body:not(.logged-in) .header-aside-inner div.cart-wrap {
display: none;
}- Click Save Changes.
Troubleshooting and FAQs
Q: The icons are still visible after adding the CSS.
A: Clear your site cache and browser cache, then reload the page.
Q: Will this affect logged-in users?
A: No. This only hides the icons for logged-out users.
Q: Can I restore the icons later?
A: Yes. Remove the CSS code and save your changes.