Hello,
In this case edit the previous code to this:
add_action( 'woocommerce_after_shop_loop_item_title', 'shop_sku' );
function shop_sku(){
global $product;
echo '<div itemprop="productID" class="sku">SKU: ' . $product->sku . '</div>';
}
and add this code in style.css of your child theme or in custom.css file of the parent theme:
.sku {
text-align: center;
}
Best regards,
Jack Richardson.