WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Remove Cart Icon from Menu Bar (4 posts)

  1. emurph42
    Member
    Posted 1 year ago #

    I want to remove the cart icon and "0 items - $0" text from my main menu bar. I am using the Catalog Visibility extension, so no products are actually for sale.

    I'm sure there is a shortcode to hide that, I just don't know enough to figure it out.

    http://wordpress.org/extend/plugins/woocommerce/

  2. dvankeulen
    Member
    Posted 1 year ago #

    I fixed this by removing this line from the header.php

    <?php woo_nav_after(); ?>

  3. emurph42
    Member
    Posted 1 year ago #

    Thanks for your response.

    Weird.. I did not find that line within the header.php

    I figured it out though - went into Theme-woocommerce.php and removed the two blocks of code about "add to cart"

  4. adefirmant
    Member
    Posted 4 months ago #

    hello.
    im successfully remove this..

    STEP.1
    go to your theme folder > woocommerce-config folder > config.php
    and delete this

    #
    # shopping cart dropdown in the main menu
    #

    function avia_woocommerce_cart_dropdown()
    {
    global $woocommerce;
    $cart_subtotal = $woocommerce->cart->get_cart_subtotal();
    $link = $woocommerce->cart->get_cart_url();

    STEP 2.
    go to header.php and delete this

    if(avia_woocommerce_enabled()) echo avia_woocommerce_cart_dropdown();

    FINISH

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic