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
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
Hi Ismael
Link
Thanks for having a look
filz51
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
Hi Ismael
100% success. Thank you very much!
Best regards,
filz51