Amount of favorites in mobile still showing

Solved4 replies2 participantsUpdated by tuijatuulia

  • Avatar: tuijatuulia
    tuijatuulia
    Participant

    Sorry, my test was not throrough so I have to open this again: https://www.8theme.com/topic/amount-of-products-in-favorites-icon/#post-270274
    To ask – it helped in desktop but not in mobile? In mobile I still see the numbers in those icons of Favorites and Cart when it is 0. are the icons called something else in mobile? I have cleared all cache in server and client.

    br,
    Tuija

    4 Answers

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hello,

    Add the next code in Theme Options > Theme custom CSS > Custom CSS for mobile:

    .et-quantity-top .et-quantity {
        display: none;
    }

    Regards

    Avatar: tuijatuulia
    tuijatuulia
    Participant

    Hi,
    Thank you for fast reply. Unfortunately this seems to make the number disappear totally, also if it is bigger than 0 too. I was hoping to show it only when it is > 0.

    This code from the feature suggestion I made (due to original ticket)- does not do anything for those mobile icon numbers (I tried also putting it to the place you adviced):

    .et-quantity.count-0 {
    display: none;
    }
    this is in my feature suggestion “Cart and Wishlist to show number only when something in them” and works nicely for desktop but not mobile. They said the component should be the same, but it seems not to work..

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hello,

    Please, check the code @Jack sent you -> https://8theme.upvoty.com/front/iframe/xstore/cart-and-wishlist-to-show-number-only-when-something-in-them/

    .et-quantity.count-0 {
    display: none;
    }

    If you add this globally it will work ok for both devices and also for mobile panel elements too

    Regards

    Avatar: tuijatuulia
    tuijatuulia
    Participant

    Hi! I did not get it working globally, but I modified it a bit and used the element you sent, and added count-0 for it, and specifically for those mobile devices, and now it works, thank you so much. Site is looking good!

The issue related to '‘Amount of favorites in mobile still showing’' has been successfully resolved, and the topic is now closed for further responses