Compatibility with Xstore AMP plugin

[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 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer