fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Option to disable Swatches on the homepage only

Muhammad Mohsin

Hi,

Hope you are well,
Can you please guide us to remove the Variation swatches from the homepage of our site only, As we do not want to show the variations on the homepage.
I didn’t find any option in the plugin settings.

Regards,
Muhammad Mohsin.

Hakik Zaman

Hi Muhammad,

Unfortunately, the feature is not currently available.

Please send the feature request here: https://storepress.fider.io/
and ask your other to upvote it.

By the way, you can try the following snippet using the Code Snippets plugin:

add_filter('disable_woo_variation_swatches_archive_product', function($default, $product){
if( is_home() || is_front_page() ){
return true;
}
return $default;
});

If the above snippet helps, could you please leave your valuable review here: https://wordpress.org/support/plugin/woo-variation-swatches/reviews/?filter=5

Your rating keeps us inspired.

Cheers!

Muhammad Mohsin

The Snippet you provided was incomplete, So I have fixed the snippet and it is working correctly now.

 

Hakik Zaman

Hi Muhammad,

The snippet was tested on our end and worked as expected.

Glad to know you have used it as per your needs

We get excited & honored when you use our plugin on your site.

If you found my support helpful, could you leave your valuable review here: https://wordpress.org/support/plugin/woo-variation-swatches/reviews/?filter=5

Your rating keeps us inspired.

Thank You