Link empty cart
-
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"> </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
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Link empty cart’ is closed to new replies.