I don’t know what the font is for the rest of the email but if you can discern that by examining one of the emails sent you’ll want to copy the style rule to this element:
return $item_name . '<br><p class="item-description">' . $excerpt ; '</p>';
As this is an email you’ll have to rely on fonts available to the user, so check the email and locate what fonts are being assigned and then add them like this:
return $item_name . '<br><p class="item-description" style="font-family:WHATEVERTHEFONTIS,Arial,Helvetica,sans-serif;font-size:XXpx;font-weight:XXpx;">' . $excerpt ; '</p>';
In earnest though, you’d be better off overriding the email templates using standard WooCommerce (I’m assuming this is for WooCommerce.) template overrides in your theme/child theme.
https://docs.woocommerce.com/document/template-structure/
That will give you full control over the templates and rather than inline styling will allow you to update the actual <style>
at the start of the email.
Related Posts:
- WooCommerce: The model of e-mail is displaying only the html, not css [closed]
- Turkish Character Problem on mailing
- How do you access the Product Short Description in a WooCommerce email template? [closed]
- single-product.php template not working for single products [closed]
- How do I add a text input field for customers to leave a note on a single WooCommerce product page?
- WooCommerce lost password reset flow not working with SendGrid (redirect loop)
- The correct way to override WooCommerce product gallery from a plugin [closed]
- Preventing WooCommerce email sending only on particular conditions
- woocommerce fail to replace template string in email title [closed]
- How can I show an empty WooCommerce cart? [closed]
- Woocommerce HTML email option unavailable
- WooCommerce: display text instead of raw checkbox value email
- Editing Header Titles of each details in woocommerce Order Email [closed]
- Woocommerce : How to attach an custom attachment with customer-processing-order.php email template [closed]
- WooCommerce email text based on category && shipping zone && payment method [closed]
- WooCommerce: Email Notifications
- Woocommerce email template customization [closed]
- Woocommerce template single-product.php in theme folder not working
- Disable Woocommerce product tags display by alphabetical order
- woocommerce_email_attachments filter arguments [closed]
- WordPress ‘on behalf of’ email
- How do I hide the purchase note in the WooCommerce ‘order completed’ email?
- Add custom order meta to Order Completed email
- Woocommerce: Prevent sending of email when order is “Completed”
- WooCommerce template page for category
- show content of a page built using yootheme builder on different page/template
- How to add a user custom field into Woocommerce emails?
- Woocommerce specific product template for product type
- Custom Admin Email Subject for Woocommerce (3.8.0) Orders
- WooCommerce order complete email logic
- woocommerce email template detect email recipient
- Adding extra email address who receives email like admin – woocommerce
- Woocommerce – Add HTML around Product description [closed]
- Add shipping address to Woocommerce order emails [closed]
- Woocommerce Email show HTML source code [closed]
- Send email notifications to a defined email address depending if a product in order has a specific TAG [closed]
- Woocommerce – Change the template?
- Woocommerce emails from gmail not being sent
- Different Templates for Woocommerce Parent and Child Sub Categories
- Send admin new order email to logged in user as well
- Create new email in WooCommerce
- Custom template – query issues
- How can i get the code of Shop Page Woocommerce?
- How to check if woocommerce_order_item_name is use in email?
- WordPress woocommerce new order email not working
- Custom Email via Hook only for completed order
- Access custom meta_data in processing order email
- Loading different header and footer in woocommerce templates (AMP)
- Custom WooCommerce template for product
- How to send Woocommerce Customer Details (Name, Email and Phone Number) to Admin upon signup
- How to change lost password email text using custom plugin wordpress?
- Using admin email in billing address
- Woocommerce – wc_cart_totals_shipping_method_label() breaking out option tag
- Forgot password flow does not work, getting email with a link but after clicking link it’s not working
- Editing fields required in the WooCommerce / WordPress registration form [closed]
- Send a different “thank you” email based on payment method
- Display product thumbnail in Woocommerce email notifications
- Customer Email Address
- Customize categroy catalog page
- Add to cart is not visible in product page
- Disable theme WooCommerce template [closed]
- Adding time of order to Admin email for new order
- (WooCommerce) Conflict with template – Can’t load payment methods
- how to add custom reviews button in woocommerce order complete generated mail
- How to add coupon expiry date into the followup emails?
- Conditional email recipient based off Shipping Method [closed]
- MailPress plugin: table inline style tag removed when sending the newsletter
- Manual Woocommerce Complete order Emails
- Output fields manually in Woocommerce email templates
- How to override email text New Customer Order?
- Woo-Commerce new order email no style attached
- WooCommerce – How to add a custom field to only a specific email template [closed]
- Insert a custom field as a second email address to a completed order in WooCommerce
- editing product page template – getting template for related products not working
- Woocommerce template not working on newly added products
- Woocommerce admin order email customize – remove product short description
- How to implement my product variations/attributes in my contact form 7 email?
- Categories and products in cart Woocommerce
- Update products with curl (bash)
- Woocommerce: Unique price for individual basket items
- Hide add to cart when product variation has no price or is unavailable
- Admin – Custom Post Type in WooCommerce menu – how to control menu order
- Facing issue in Woocommerce 3.3 version in wordpress
- SyntaxError: unterminated string literal – if WordPress Debug in wp-config is set to true
- getting attributes in a product loop
- How Fragile Is DB if I Upload Completely Updated Files
- Broken 302 redirection for product subcategory (Woocommerce, Apache)
- Send default WooCommerce email when switching from custom order status
- Can I get some product is virtual in Woocommerce by hook?
- Woocommerce order_complete email dont send after changing order status via sql
- Removing storefront-sorting div from the before section of Shop page
- Site with WooCommerce section moved to HTTPS – all pages except home and main store are 404s
- syntax error – woocommerce
- Multiple quantities with options
- How to on/off woocommerce filter with redux framework [closed]
- Hook woocommerce price in backend order edition
- Template conflict with WC Payment Method
- Website Tablet Check Out Field Issue
- How to change the link of product menu from wordpress admin panel
- WooCommerce order created via REST – sending the date_created along