Hello I managed to use the below code to add attribute names to the product content elements. But I wonder is there any code to display the attribute images (in circle shape) as well?
add_action('woocommerce_after_shop_loop_item_title', 'show_attributes', 10);
function show_attributes(){
global $product;
if ($product->get_attribute('pa_color')){
echo '<p>' . wc_attribute_label('pa_color') . ': ' . $product->get_attribute('pa_color') . '</p>';
}
if ($product->get_attribute('pa_size')){
echo '<p>' . wc_attribute_label('pa_size') . ': ' . $product->get_attribute('pa_size') . '</p>';
}
}