Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #757818

    Hi
    I use a snipped in style.css of my child theme because I have a problem with the add to cart button. If I don’t use this snipped, the add to cart button is displayed all the time, even if the chart is empty.

    @media only screen and (max-width: 767px) {
    .responsive #top .cart_dropdown { right: -160px; }
    .responsive #top .cart_dropdown.visible_cart { right: 7.5%; }
    }

    The problem is, the chart button does not appear when there is an item in the cart.
    I only want the chart button to be displayed when a product was added to the cart.
    How should I fix that?
    Thanks for support, filz51

    • This topic was modified 7 years, 3 months ago by filz51.
    #760462

    Hey filz51!

    Thank you for using Enfold.

    Could you please provide a link to the page with the issue? Where is the location of the the “cart” icon? If it is added in the main menu, it will display even if it’s empty.

    Regards,
    Ismael

    #762714

    Hi Ismael
    Link
    Thanks for having a look
    filz51

    #762825

    Hi!

    Thanks for the update. Please replace the css modification with the following:

    @media only screen and (max-width: 767px) {
        .responsive #top .cart_dropdown {
            right: -150px;
        }
    
        .responsive.html_visible_cart #top .cart_dropdown {
           right: 7.5%;
        }
    }

    Best regards,
    Ismael

    #762927

    Hi Ismael

    100% success. Thank you very much!

    Best regards,
    filz51

    #762951

    Hi,
    Thank you for using Enfold.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Problem with add to chart button’ is closed to new replies.