Skip to content

Branded Emails

Orbit provides a clean HTML email template system that automatically wraps default WordPress system emails and Gravity Forms notifications in a responsive, modern HTML layout.

Features

  • Automated Wrapping: Converts plain text emails sent via wp_mail() into formatted HTML emails.
  • Gravity Forms Integration: Formats Gravity Forms notification emails using the same branded template.
  • WooCommerce Design Parity: When WooCommerce is active, Orbit automatically inherits WooCommerce email colors, fonts, and header styling settings to maintain visual consistency across all outgoing emails.
  • Developer Template Overrides: Allows complete customisation of email HTML markup and CSS inline styles within your theme.

Overriding Email Templates in Themes

You can override Orbit's default email template files by copying them into your active theme:

Default Orbit FileTheme Override LocationPurpose
templates/branded-emails/email-template.phpyourtheme/orbit/branded-emails/email-template.phpOuter HTML structure & layout markup
templates/branded-emails/email-styles.phpyourtheme/orbit/branded-emails/email-styles.phpCSS styles passed to Emogrifier for inline styling

Template Hierarchy

Orbit searches for overrides in your child theme first, falling back to parent themes, and finally to Orbit's default templates.

Customising Email Styling via Filters

Orbit provides filter hooks to customise email branding variables without needing to override full template files:

php
// Set a custom logo URL for email headers
add_filter( 'orbit_branded_emails_header_logo', function() {
    return 'https://example.com/wp-content/uploads/email-logo.png';
} );

// Set header logo width in pixels
add_filter( 'orbit_branded_emails_logo_image_width', function() {
    return 160;
} );

// Customise email background and link colors
add_filter( 'orbit_branded_emails_background_color', fn() => '#f4f5f7' );
add_filter( 'orbit_branded_emails_link_color', fn() => '#0055ff' );
add_filter( 'orbit_branded_emails_font_family', fn() => 'Arial, sans-serif' );

Complete Styling Filters

FilterDescriptionDefault Fallback
orbit_enable_branded_emailsEnable/disable branded email wrappingtrue
orbit_branded_emails_header_logoHeader logo image URL''
orbit_branded_emails_logo_image_widthHeader logo image width in pixelsWooCommerce logo width or 120
orbit_branded_emails_background_colorOuter email background colorWooCommerce background color or #ffffff
orbit_branded_emails_body_background_colorEmail content container backgroundWooCommerce body background or #ffffff
orbit_branded_emails_body_border_colorBorder color around content boxTheme custom border var or #edeff1
orbit_branded_emails_body_text_colorPrimary body copy colorWooCommerce text color or #3f474d
orbit_branded_emails_link_colorHyperlink colorWooCommerce base color or #8549ff
orbit_branded_emails_footer_text_colorFooter text colorWooCommerce footer color or #3f474d
orbit_branded_emails_font_familyCSS font family stackWooCommerce font stack or "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif

Disabling Branded Emails

If another plugin handles email templates or you prefer raw plain-text emails, disable Orbit's email module:

php
add_filter( 'orbit_enable_branded_emails', '__return_false' );