Tagged: mobile, shopping cart
Hi Team,
Right now I have a shopping cart button in the top right of my site on both desktop and mobile. However, the button is broken on mobile. It appears, but if you try to click on it nothing happens… I’m not sure why this is happening.
Best,
Jeff
Hey Jeff,
Please try the following in Quick CSS under Enfold->General Styling:
@media only screen and (max-width: 767px) {
#menu-item-shop {
z-index: 99;
}
}
Best regards,
Rikard
Hi @rikard,
Unfortunately, this did not solve the problem as the cart link is still broken on mobile. I forgot to mention above that the notifications for items in the cart do still show up on mobile. Not sure if that changes anything for you.
Best,
Jeff
Hi,
Did you add the code to the very top of quick css so it runs first? Also, clear the cache a few times over.
Best regards,
Jordan Shannon
Hi Jeff,
The CSS you added is not applying, please try this instead:
@media only screen and (max-width: 767px) {
#menu-item-shop {
z-index: 99 !important;
}
}
Also make sure that you clear the cache from your caching plugin.
Best regards,
Rikard
Hi @rikard,
This works perfectly. I’ll try to remember to add the !important next time something doesn’t work properly! Thank you for your help. This can be closed.
Best,
Jeff
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon