How can I get rid of the WOoCOmmerce menu while still leaving the banner message? Thanks!
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>";
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.
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
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();
$sub = $cart = '';
The topic ‘Disable WooCommerce Header Menu’ is closed to new replies.