YayMail - WooCommerce Email Customizer
  • Getting Started
    • Introduction
    • How to Install
    • Enter license key
    • System Requirements
    • How To Update YayMail
    • Uninstall and Delete
  • How It Works
    • Drag and Drop Interface
    • Block-Based Live Editor
    • Pre-Designed Patterns
  • Global Header and Footer
  • Upper Toolbar
    • Shortcodes
    • Custom shortcode
    • Reset Templates
    • Import/copy template from
  • The Elements Panel
    • Basic Elements
      • Embed a YayMail shortcode into a button
      • Add HTML and shortcode
    • General Elements
    • WooCommerce Elements
      • Change Order Item Titles
    • Blocks
  • The Settings Panel
    • General Settings
    • Email Settings
    • Customize with CSS
    • Hide Elements of Order Table
    • Duplicate/Copy an Element
  • Preview email
  • Visibility Control
  • Tools
    • Enable or Disable Templates
    • Import or Export Templates
  • Guides
    • Display coupons
    • Add column in order item table
  • Developer zone
    • Demo Plugin
    • Register Templates
      • Register new template
      • Email class
      • Render Templates content
    • Register Elements
      • Register New Elements
      • Element Class
      • Render Element content
      • Default element data
      • Custom Property Editor (coming soon)
    • Register Shortcodes
      • Register New Shortcodes
      • Shortcode Class
  • Integrations
    • FooEvents for WooCommerce
    • Custom Order Status Manager for WooCommerce by Bright Plugins
    • Custom Order Status by TycheSoftwares
    • Custom Order Status by Nuggethon
    • WooCommerce Order Status Manager by SkyVerge
    • WooCommerce Admin Custom Order Fields by SkyVerge
    • Advanced Custom Fields (ACF) by WP Engine
    • Checkout Field Editor by WooCommerce
    • Flexible Checkout Fields by WPDesk
    • Checkout Field Editor by ThemeHigh
    • WooCommerce Show Attributes by Isabel Castillo
    • Back In Stock Notifier by codewoogeek
    • Shipment Tracking
    • Advanced Local Pickup for WooCommerce by Zorem
    • Software Addon by WooCommerce
    • WPML & WooCommerce Multilingual
    • Weglot Translate
    • Loco Translate
    • TranslatePress/Polylang
    • Translate text in YayMail
    • User meta
  • Addons
    • Conditional Logic
    • WooCommerce Subscriptions
    • Germanized for WooCommerce
    • Dokan Multi Vendor
    • AutomateWoo
    • WooCommerce Follow Ups
    • WooCommerce Bookings
    • WooCommerce Gift Cards
    • Smart Coupons
    • WooCommerce Memberships and Teams for WooCommerce Memberships
    • WooCommerce Pre-Orders
    • Parcel Panel Order Tracking
    • WCFM Marketplace
    • Affiliate For WooCommerce
    • Back In Stock Notifications
    • PW WooCommerce Gift Cards
    • Appointments for WooCommerce
    • WooCommerce Bookings And Appointments by PluginHive
    • B2BKing
    • B2B Market
    • B2B & Wholesale Suite
    • TrackShip for WooCommerce
    • SG WooCommerce Order Approval
    • SUMO Subscriptions
    • SUMO Payment Plans
    • WooCommerce German Market
    • WC Vendors Marketplace
    • WooCommerce Print Invoices & Packing Lists
    • WooCommerce Deposits
    • WooCommerce Cart Abandonment Recovery by CartFlows
    • WooCommerce Waitlist
    • WooCommerce Simple Auctions
    • YITH Auctions for WooCommerce
    • YITH WooCommerce Stripe
    • YITH Membership
    • YITH Subscription
    • YITH Booking and Appointment
    • YITH WooCommerce Recover Abandoned Cart
    • YITH Wishlist
    • YITH Pre-Order
    • YITH Gift Cards
    • YITH Review For Discounts
    • YITH Multi Vendor
    • YITH WooCommerce Points and Rewards
    • YITH WooCommerce Request a Quote
    • YITH WooCommerce Affiliates
    • YITH WooCommerce Coupon Email System
    • WooCommerce Order Delivery Date Pro
    • Colissimo Shipping Methods for WooCommerce
    • WooCommerce Deposits & Partial Payments
    • Custom Fields by Addify
    • Quotes for WooCommerce
    • RMA Return Refund and Exchange For WooCommerce
    • License Manager for WooCommerce
    • WooCommerce Product Vendors
    • MultiVendorX
    • WooCommerce Stripe Payment Gateway
    • WooCommerce B2B
    • Order Cancellation Email
    • Order Delivery
    • Account Funds
    • TeraWallet for WooCommerce
    • Points And Rewards
    • Split Orders
    • WP Crowdfunding
    • AliDropship for WooCommerce
    • Custom User Registration Fields by Addify
    • MultiLocation Inventory & Order Routing
    • Woo Sell Services
    • WooCommerce Return & Warranty Management
    • WholesaleX
    • ShopMagic
    • WooCommerce Contact for Shipping Quote
    • MarketKing
  • Why Upgrade?
  • OTHER LINKS
    • FAQs
    • Troubleshooting
      • Continuous loading
      • Unable to save template
      • Unable to save Emoji
      • Unable to send test email
      • How to clear cache
      • How to use YayMail with GoDaddy
    • Changelog
    • Useful Links
      • AppSumo Deal
    • Support
      • How to pay without PayPal
      • How to renew the license key
      • How to change payment method
  • Articles
    • Design Tips
      • Customize Order Confirmation Email
      • Preview and Test Your Emails
      • Design a Black Friday Banner
      • Embed a Video in WooCommerce Email
      • Add Conditional Logic to WooCommerce Emails
    • Email Marketing
      • Setup Next Order Coupon in WooCommerce Emails
      • Automatically Send “Customer Invoice/Order Details" to Customers
      • Create Emails with Dynamic Content
      • Customize WooCommerce Membership Emails
      • Recover Abandoned Cart
    • Advanced Guides
      • Create WooCommerce Custom Emails Per Product
      • Customize ShopMagic Automation Emails
      • Create Custom Shortcode for YayMail
      • Translate Emails with Loco Translate
Powered by GitBook
On this page

Was this helpful?

  1. The Settings Panel

Customize with CSS

PreviousEmail SettingsNextHide Elements of Order Table

Last updated 5 months ago

Was this helpful?

There are various options for global design. But if you would like to dive deeper to achieve a sophisticated design, you can consider using CSS to further customize the email elements.

Customizing text link color

If you wish to change the text link color of the customer's email address and phone number, you can add this CSS snippet:

td.yaymail_billing_address_content address > span > a{
    color: green !important;
}

Just navigate to the Settings tab, enable Custom CSS, add the CSS to the box, and click Save.

Refer to the screenshot below, I'm changing the text link color into green.

Likewise, you can also change many aspects like removing the underline, turning them into bold font, and so on.

Customizing WooCommerce order details table

If you want to hide the table border or change the design of the order item table, consider applying these CSS:

.yaymail_element_order_item {
     border: none !important;
}
.yaymail_element_head_order_item  tr th {
    border-color: #ffffff !important;
    border-bottom-color: #e5e5e5 !important;
}
.yaymail_element_body_order_item tr th {
    border-color: #ffffff !important;
    border-bottom-color: #e5e5e5 !important;
}
.yaymail_element_foot_order_item {
    background: #e5e5e5 !important;
}
.yaymail_element_foot_order_item  tr th {
    border: none !important;
    text-align: right !important;
}

And here are the end results once you applied the CSS above.

Customizing order item table

  1. Customizing column

In your theme editor, open functions.php and add this filter first:

add_filter(
	'yaymail_order_item_product_title_colspan',
	function( $value , $template_id) {	
		return 2;
	},
	10,
	2
);
  • To hide the quantity column, you can apply these CSS and PHP snippets.

In YayMail settings, enable Custom CSS, and add this CSS:

.yaymail_item_quantity_title, .yaymail_item_quantity_content {
    display: none !important
}
  • To hide the price column, you can add the following CSS:

.yaymail_item_price_title, .yaymail_item_price_content{
    display: none !important;
}
  1. Customizing row

  • To hide the note row, please apply the following CSS

.yaymail_item_note_title_row {
    display: none !important;
}

Customizing font size

To change the font size of the order table, in YayMail settings, enable Custom CSS, and add this CSS:

.yaymail_element_head_order_item tr th,
.yaymail_element_body_order_item tr th,
.yaymail_element_foot_order_item tr th
 {
  font-size: 20px !important;
}

To change the font size of the Billing address and Shipping address, in YayMail settings, enable Custom CSS, and add this CSS:

.title-billing,
.title-shipping,
.yaymail_shipping_address_content table address span,
.yaymail_billing_address_content table address span{
    font-size: 20px !important
}