Amount of favorites in mobile still showing

This topic has 5 replies, 2 voices, and was last updated 4 years, 10 months ago ago by tuijatuulia

  • Avatar: tuijatuulia
    tuijatuulia
    Participant
    February 1, 2021 at 15:29

    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
    February 1, 2021 at 19:33

    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
    February 2, 2021 at 14:30

    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
    February 3, 2021 at 09:02

    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
    February 3, 2021 at 17:23

    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!

  • Viewing 5 results - 1 through 5 (of 5 total)

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

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.