Hello,
Add the below code to child theme functions.php and edit ti according to your needs to show the attributes you need
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>';
}
}
Regards