How to Disable the Cart Button on Tablets?
-
Hello,
I need your assistance with a specific functionality. Currently, the “Show on Mobile” option allows me to hide the cart button on mobile devices, but there is no similar option to disable it on tablets.
My goal is to ensure that the cart button is visible only on desktop screens (beyond tablet sizes). However, I’ve noticed that the
style="display: block;"
attribute is applied directly to the.xoo-wsc-basket
HTML element, making it impossible to customize the display via CSS.Could you please let me know if there’s a recommended method or a PHP filter I could use to conditionally display the button based on screen size? Alternatively, if modifying the plugin files is required, could you guide me on the best way to proceed without compromising stability or future updates?
Thank you in advance for your valuable help.
- You must be logged in to reply to this topic.