[ad_1]
Hi,
Thanks for reaching out to us.
Unfortunately, the Xstore AMP Plugin is not available in the WordPress.org plugin repo. So, we can’t check it further.
Or add option for the swatches plugin to be disabled on mobile
You can try the following snippet inside your functions.php file to disable swatches on mobile devices:
add_filter('default_woo_variation_swatches_single_product_dropdown_html', function($default){
if ( wp_is_mobile() ) {
return true;
}
}, 10, 1);
Note: It is recommended to add the Custom Code to the child theme’s functions.php file, to avoid any data loss while updating the Parent Theme.
Thank You
Thanks
The snippet did what I want 🙂
