How to add (and change the font of) the short product description to order page and customer's new order e-mail
I'd like to add the short product description to the e-mail that is sent to the customer when a new order is confirmed.
I've added the following via a code snippets plug-in:
add_filter( 'woocommerce_order_item_name', 'add_single_excerpt_to_order_item', 10, 3 );
function add_single_excerpt_to_order_item( $item_name, $item, $is_visible ){
$product_id = $item-get_product_id(); // Get the product Id
$excerpt = get_the_excerpt( $product_id ); // Get the short description
return $item_name . 'brp class="item-description"' . $excerpt ; '/p';
}
It is working correctly by adding the short description but now I would like to change the font type and size to match the rest of the e-mail.
Can you assist, please?
Topic woocommerce-offtopic html-email email templates Wordpress
Category Web