• Resolved Willem-Siebe

    (@siebje)


    Hi,

    This is a great plugin. I would consider just leaving the ‘href’ part ouf of the below code.

    // Check empty cart settings
    		if ($item_data['cart_contents_count'] == 0 && ( !isset($this->options['always_display']) ) ) {
    			$empty_menu_item = '<a class="wpmenucart-contents empty-wpmenucart" href="#" style="display:none">&nbsp;</a>';
    			return $empty_menu_item;
    }

    Just like the current page in HTML5 breadcrumbs (see here) should not have any link functionality, so they leave out the ‘href’ part of the ‘a’ element. This would be a good practise for the empty cart as well.

    Kind regards,

    Willem-Siebe

    https://wordpress.org/plugins/woocommerce-menu-bar-cart/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Thanks for the suggestion, we will incorporate this into the next release!

Viewing 1 replies (of 1 total)
  • The topic ‘Link empty cart’ is closed to new replies.