1. Home
  2. Knowledge Base
  3. Customizations
  4. CSS
  5. How to Remove the Shopping Cart and Search Icons for Logged-Out Users

How to Remove the Shopping Cart and Search Icons for Logged-Out Users

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.

  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:
body:not(.logged-in) .header-aside-inner a.header-search-link,

body:not(.logged-in) .header-aside-inner div.cart-wrap {

    display: none;

}
  1. Click Save Changes.

Note: Any modifications like this are considered custom work. Please review the BuddyBoss Support Policy for details.

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.

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.