Displaying the cart count in the header of an e-commerce website is a functional feature that enhances user convenience by allowing customers to see the number of items in their cart at a glance. However, in certain design scenarios, you might prefer to hide this count for a cleaner look. If your site is built with the Astra theme for WordPress, toggling the visibility of the cart count is a simple process using the Header Builder. This guide will explain how to show or hide the cart count in the Astra theme, enabling you to customize your site’s header according to your specific design needs.
- Log Into WordPress Backend: Begin by accessing your WordPress dashboard. This is your central control area for managing your website’s content and settings.
- Access Astra Theme Settings: In your dashboard, locate the ‘Astra’ option in the left menu bar and click on it. This will open the settings page for the Astra theme.
- Go to Theme Customizer: Find and click on the ‘Go to Customizer’ link or button within the Astra settings. This will take you to the WordPress Customizer, where you can make live changes to your theme.
- Enter Header Builder: In the WordPress Customizer, select ‘Header Builder’. The Header Builder is an integral part of the Astra theme, allowing for extensive customization of your site’s header.
- Access Cart Settings: Click on ‘Cart’ within the Header Builder. Make sure the cart module is added to your header, as the cart count setting will not be available otherwise.
- Toggle Display Cart Count Option: Locate the ‘Display Cart Count’ option in the cart settings. Change this setting to show or hide the cart count, based on your preference.
- Publish Your Changes: After adjusting the cart count visibility, click on the ‘Publish’ button. This will save your changes and apply them to your live website.
Whether you choose to display or hide the cart count in your Astra-themed WordPress site, this customization allows you to tailor the shopping experience to match your site’s design and your customers’ needs. A visible cart count can offer convenience and clarity, while hiding it can contribute to a more minimalist and sleek design. Always preview your changes on various devices to ensure the cart count’s visibility aligns with your overall website design.