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

Remove Attribute Image With Radio Buttons

Karim Man

Hello, how can I disable the attribute image when using the radio buttons?
Under Variation Swatches for WooCommerce Settings > Advanced > Attribute image size, I looked under the dropdown and could only see the list of image sizes, but no choice to disable it completely. Can you please help?

Hakik Zaman

Hi Karim,

Thanks for reaching out to us. Please add the following snippet using the Code Snippets plugin.

You can also add the following snippet inside your theme’s functions.php

add_filter('woo_variation_swatches_global_item_radio_label_template', function($default, $data){
return '%variation% - %price% %stock%';
}, 10, 2);

Note: If you are not using a child theme. I would recommend using the Code Snippets plugin to add the above snippet.

Thank You