Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #21593

    How can I get rid of the WOoCOmmerce menu while still leaving the banner message? Thanks!

    #112371

    Hi,

    open up functions.php and delete following code:

    $sub .= "<div class='sub_menu'>";
    $args = array('theme_location'=>'avia2', 'fallback_cb' => '', 'echo' => 0);
    if(avia_woocommerce_enabled()) $args['fallback_cb'] ='avia_shop_nav';
    $menu = wp_nav_menu($args);
    $sub .= $menu;
    $sub .= "</div>";

    #112372

    Alright, but the cart portion of it is still appearing on the right. I just want to eliminate it altogether and just have the message all the time.

    Thanks alot!

    #112373

    Hey!

    You also need to delete following code in functions.php.

    if(avia_woocommerce_enabled())
    {
    $sub = $cart = avia_woocommerce_cart_dropdown();
    }

    Regards,

    Peter

    #112374

    Then I get an error like this, when I copy those exact instructions,

    Fatal error: Call to undefined function avia_woocommerce_cart_dropdown() in ***/wp-content/themes/propulsion/functions.php on line 29

    #112375

    Hi!

    Very weird because the cart_dropdown function is not called on line 29 (but on line 278). Try to replace:

    $sub = $cart = avia_woocommerce_cart_dropdown();

    with:

    $sub = $cart = '';

    Best regards,

    Peter

    #112376

    Perfect, thank you so much!

    #112377

    Is it possible to keep the header menuline, however just remove the cart?

    Disabling woocommerce gives me trouble when trying to use “Template builder”. So I have to keep Woocommerce enabled.. :-/

    #112378

    Hi pooz,

    Re-add the first bit that you deleted from the functions.php file and then in your Appearance>menus, you can replace the login/logout menu with your own by using the dropdown for Menu locations.

    Regards,

    Devin

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Disable WooCommerce Header Menu’ is closed to new replies.