Are you tired of the WooCommerce cart bar cluttering your website’s header? It can distract your visitors and make your site look crowded.
If you want a cleaner, more focused design, removing that cart bar might be exactly what you need. In this guide, you’ll learn simple, effective ways to remove the WooCommerce cart bar from your header—no confusing jargon, just clear steps you can follow right now.
Keep reading, and take control of your site’s look today.

Credit: wpservices.com
Identify Cart Bar Location
The WooCommerce cart bar is often found in the header. This guide helps you locate it easily.
Finding the cart bar is the first step to removing it. Look for its position in your WordPress theme.
Check Theme Header
Your theme’s header file may include the cart bar. Access the WordPress dashboard to find it.
Navigate to Appearance and then to Theme Editor. Look for header.php in the list of files.
Inspect With Browser Tools
Use browser tools to inspect the cart bar. Right-click on the cart bar in your browser to inspect it.
In the Elements tab, find the HTML code for the cart bar. This helps identify its exact location.
Search For Woocommerce Hooks
WooCommerce hooks might display the cart bar. Search for hooks in your theme’s functions.php file.
Common hooks include actions like woocommerce_before_main_content. Check these for cart bar elements.
Theme Customizer Options
Some themes offer settings to hide the cart bar. Access the Customizer from the Appearance menu.
Look for options related to the cart or header. Disable the cart bar if the option is available.
Use Theme Settings
The WooCommerce cart bar in the header can be distracting. You can remove it easily using your theme settings. Many themes have built-in options to show or hide this cart bar.
Adjusting these settings does not require coding. You only need to find the right option in your WordPress dashboard.
Locate Theme Customizer
Open your WordPress dashboard and go to Appearance. Click on Customize to open the Theme Customizer. This is where most theme settings live.
Find Woocommerce Or Header Settings
Inside the Theme Customizer, look for WooCommerce or Header sections. Some themes group cart bar options under these areas. The exact location depends on your theme.
- Click on WooCommerce settings if available.
- Check the Header or Top Bar options.
- Search for Cart or Cart Bar visibility settings.
Disable The Cart Bar
Once you find the cart bar option, toggle it off or uncheck the box to hide it. This action removes the cart bar from your site header.
Save And Publish Changes
After disabling the cart bar, click the Publish button in the customizer. This saves your changes and updates your live site immediately.
| Step | Action |
| 1 | Go to Appearance > Customize |
| 2 | Find WooCommerce or Header settings |
| 3 | Locate cart bar visibility option |
| 4 | Disable or hide the cart bar |
| 5 | Click Publish to save |
Add Custom Css
Removing the WooCommerce cart bar from your header can improve your website’s look. You can do this easily by adding custom CSS code.
Custom CSS lets you hide the cart bar without changing any plugin files. This keeps your site safe from updates.
Find The Cart Bar Css Class
First, identify the CSS class or ID used by the cart bar in your header. You can use your browser’s developer tools to find it.
Add Css To Hide The Cart Bar
After finding the correct class, add CSS code to hide it. Use the display: none;property to remove the bar from view.
- Go to your WordPress dashboard.
- Navigate to Appearance > Customize.
- Open the Additional CSS section.
- Paste the CSS code to hide the cart bar.
- Save and publish your changes.
Example Of Custom Css Code
/ Hide WooCommerce cart bar in header / .header-cart-bar { display: none !important; }Replace .header-cart-barwith your site’s actual cart bar class or ID. This code will hide the cart bar on all pages.

Credit: quadlayers.com
Modify Header Template
Removing the WooCommerce cart bar from the header often needs changes in the header template. This allows you to control what shows in your site’s top area.
Editing the header template helps you hide or remove the cart bar without affecting other parts of your site.
Locate The Header Template File
Find the header template in your theme folder. It is usually named header.php or header-template.php.
Use a file manager or FTP client to access your theme files. Backup the file before making changes.
Identify The Cart Bar Code
Look for code that shows the WooCommerce cart bar. It often uses functions like woocommerce_cartor hooks.
The cart bar might be inside a div with class names related to cart or WooCommerce.
Remove Or Comment Out The Cart Code
Delete the cart bar code or add comment tags to disable it. This will stop the cart bar from displaying.
- To comment out PHP code, wrap it with
php / code / ? - To comment HTML code, use
code
Save And Test Your Changes
Save the edited header file and upload it to your server if needed. Refresh your site to see if the cart bar is gone.
Clear your browser cache if you still see the cart bar. Make sure the site works correctly after changes.

Credit: www.youtube.com
Frequently Asked Questions
How To Disable Woocommerce Cart Bar In Header?
To disable the WooCommerce cart bar, add custom CSS or use a child theme to remove the cart widget. Alternatively, use a plugin that controls header elements to hide the cart bar quickly without coding.
Can I Remove Woocommerce Cart Bar Without Plugins?
Yes, you can remove the cart bar by adding custom code to your theme’s functions. php file. This method requires basic PHP knowledge and ensures no extra plugins slow down your site.
Why Remove Woocommerce Cart Bar From Header?
Removing the cart bar declutters your header and enhances user experience. It helps focus visitors on essential content, improving site navigation and potentially boosting conversion rates.
Will Removing Cart Bar Affect Woocommerce Functionality?
No, hiding the cart bar only changes its visibility. The cart functionality remains intact, and users can still access their cart through other navigation options.
Conclusion
Removing the WooCommerce cart bar in the header keeps your site clean and simple. It helps visitors focus on your main content. The process is quick and does not need complex skills. Use the steps shared to hide the cart bar easily.
This small change can improve your site’s look and feel. Try it today and see the difference yourself.



