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

Variations swatches colors replaced by images

Hi

Your colors have been replaced by img file. I can see in inspect tool its loading /placeholder.img

URL

https://www.littlewonders.dk/produkt/ella-body-med-bred-blonde/

Best regards

Hakik Zaman

Hi Little Wonders,

Thanks for reaching out to us. You are using the radio attribute type.

In our recent version, we added variation images with radio attributes.

But you need to add variation images for all variations otherwise will display a placeholder image.

If you want to hide the image you can try the below snippet using the Code Snippets plugin:

add_filter('woo_variation_swatches_global_item_radio_label_template', 'override_radio_display_parameter', 10, 2);
add_filter('woo_variation_swatches_variable_item_radio_label_template', 'override_radio_display_parameter', 10, 2);
function override_radio_display_parameter($template, $data){
   $new_label_template = apply_filters( 'woo_variation_swatches_global_item_radio_label_template_new', '%variation% - %price%', $data );
   return $new_label_template;
}

Thank You