Your cart is currently empty!
SayPro is a Global Solutions Provider working with Individuals, Governments, Corporate Businesses, Municipalities, International Institutions. SayPro works across various Industries, Sectors providing wide range of solutions.
Email: info@saypro.online Call/WhatsApp: Use Chat Button 👇
Written by
in
Copy this from SayPro Charity Kraal
To add a WooCommerce icon (typically a cart or user/account icon) to the top navigation menu or header, follow the method that best matches your theme setup. Here’s a complete guide to adding the WooCommerce cart or account icon to the top of your site:
Many popular WordPress themes (like Astra, OceanWP, GeneratePress, Storefront, or Hello Elementor) have native support for showing WooCommerce icons in the header.
🔔 If your theme supports a header builder, you can drag and drop the Cart or Account element into the header area.
/cart
)/checkout
)/my-account
)If your theme allows Font Awesome or icon fonts, you can include them like:
<i class="fas fa-shopping-cart"></i> Cart
<i class="fas fa-user"></i> My Account
⚠️ Only works if your theme or plugins support HTML in menu items.
Use a plugin for more control or if your theme doesn’t support WooCommerce icons out of the box.
If you’re editing a custom theme or header:
<?php
echo '<li class="menu-cart">';
echo '<a href="' . wc_get_cart_url() . '"><i class="fas fa-shopping-cart"></i> (' . WC()->cart->get_cart_contents_count() . ')</a>';
echo '</li>';
?>
Place this code inside your header.php (or a custom nav walker), wrapped in appropriate HTML.
Method | Best For |
---|---|
Theme Customizer | Easiest for supported themes |
Menus with Icons | Quick and flexible |
Plugin (Menu Cart) | Cart icon + item count |
Custom Code | Full control (developer option) |