This topic has 6 replies, 2 voices, and was last updated 7 years, 2 months ago ago by Rose Tyler
Hi,
Perhaps is it a setting I overlooked but when there is nothing in the wishlist or in the shoppingcart the icons in the header shows a zero. And I think it is nicer when there is nothing you do not see a number.
Is that possible?
Hello,
Is your problem solved http://prntscr.com/gjrawd ?
To hide number you may add this code in Custom css:
.fixed-header .navbar-header .et-wishlist-widget .wishlist-count, .header-wrapper .et-wishlist-widget .wishlist-count {
display: none;
}
Regards
Sorry,
Perhaps I was not clear enough.
I want that only the number zero is not to be seen when nothing is added.
So only the icon of the shopping cart and the heart of the wishlist.
As well the shopping cart as the heart remains empty.
But when something is added the number appears.
Like the e-mail icon on your phone. If you do not have an email than there is no number to be seen.
Am Im clear?
Thanks Ton.
In this case, you need to edit etheme_wishlist_widget function (framework/woo.php file) and change http://prntscr.com/gjrrq0 to http://prntscr.com/gjrs23
<?php if ($wl_count > 0) : ?>
<span class="wishlist-count"><?php echo (int) $wl_count; ?></span>
<?php endif; ?>
also add this code in custom css:
.shopping-container .shopping-cart-widget .badge-number.number-value-0 {
display: none;
}
It’s recommended to make such changes via child theme to prevent losing your customizations after the next theme update.
Regards
OK Rose,
Thank you again,
Hopefully it was not too much going into details, but knowing my client she would ask about it.
Have a nice day, Ton.
You’re welcome!
Feel free to ask if you have any other questions.
Regards
The issue related to '‘Number zero in wishlist and shopping cart’' has been successfully resolved, and the topic is now closed for further responses