- How to Install SureDash
- Download and Access Your SureDash License
- How to Update SureDash
- Understanding Spaces and Space Groups in SureDash
- How to Add a Space Content Type in SureDash
- How to Set Up a SureDash Course Space
- How to Set Up Google Login in SureDash: A Step-by-Step Guide
- How to Set Up Facebook Login in SureDash: A Step-by-Step Guide
- Understanding the Customize Portal in SureDash
- How To Add a Logo To The SureDash Portal
- Setting up Space Groups
- Hidden Spaces in SureDash
- How to Create a Feed Space
- How to Set up “Course” space in SureDash?
- How to Create a “Discussion” Space in SureDash
- How To Set Up A Private Discussion Space In SureDash
- Creating a “Single Post/Page” Space in SureDash
- How to Set Up a “Link” Space in SureDash
- How to Configure SureDash Space Layouts
- Understanding the “Single Post/Page” Space Type in SureDash
- How to set up Giphy Integration?
- How to Set up Presto Player with SureDash
- SureDash & SureMembers Integration: How to Restrict Access to Spaces and Content
- How to Integrate SureCart with SureDash
- How to Integrate OttoKit with SureDash
- Kadence Theme Compatibility with SureDash
- Using Media Offloading in SureDash
- How to Translate SureDash into Another Language
- How to Set Up and Award Badges in SureDash
- How to Regenerate the Default SureDash Pages
- Recommended Hosting for SureDash
- Customizing the Portal Slug Using a Filter
- How to Edit SureDash Space or Post with Any Page Builder
- How to Use the Profile URLs in SureDash
- How to Manage Navigation Sidebar Top Sticky Offset in SureDash
- Custom Classes Used in Site Editor and Their Purpose
- How to Reset the Portal Template in SureDash?
- Media Handling in the Resource Library
- Location Where Users Can View Their Accessed Resources in SureDash
- How to Refresh / Flush WordPress Permalinks?
- How To Migrate From Alpha To Final Version
- Presto Player Not Working in SureDash?
- SureDash v1.3.0 Release Compatibility Notes
- Troubleshooting Portal Layout Issues in SureDash with Astra Theme
- Using SureDash and LifterLMS Lessons Together
- Why Some Strings Are Not Translating in SureDash
- How to Add Custom Fields to the User Profile in SureDash
- Understanding Slugs in SureDash
- How to Restrict Any Space or Post from SureDash?
- How to Customize Community Content Post Slugs in SureDash
- How to Customize User Profile Fields and Social Links in SureDash v1.5.0
- How to Add Custom Notifications in SureDash
- Customizing Email Templates in SureDash and SureDash Pro
- How to Hide Admins or Specific Users from the Member Directory
- How to Create Custom Extensions and Add Custom Options in SureDash
- How to Restrict Any Space or Post from SureDash?
- Customize Side Navigation Icons Conditionally
- SureDash Developer Hooks
- SureDash Course Progress Hooks
- How to Add Custom Notifications in SureDash
- Customizing Email Templates in SureDash and SureDash Pro
Customizing Email Templates in SureDash and SureDash Pro
Every email SureDash sends is a small but meaningful touchpoint with your community. By customizing the email templates, you can make sure those emails reflect your brand’s colors, logo, and tone, rather than using the default plugin styling.
This guide walks theme developers and site owners through how to override the email wrapper to rebrand all emails at once, and for SureDash Pro users, how to also customize the content of specific email types.
Applies to: SureDash 1.8.1+ and SureDash Pro (released after 1.7.0) All file paths in this guide are relative to your active theme’s directory.
How Email Templating Works
Every SureDash email is built in two layers:
Wrapper Controls the overall HTML structure, including the DOCTYPE, layout, header, and footer.
Inner Template Controls the actual email content, such as the message, greeting, and call-to-action button.
Here is how the two layers work together when an email is sent:
- The inner content is generated first.
- It is passed into the wrapper as the variable
$email_body_content. - The wrapper controls how that content is displayed.
This means you can rebrand all emails at once by updating just the wrapper, or override only the specific templates you want to change.
What You Can Customize
| What | File to Override | Available In |
|---|---|---|
| Visual shell for all emails | wrapper.php | Free + Pro |
| Content for specific emails | post-reply.php, comment-reply.php, mention.php | Pro only |
| Sender name and email address | Settings UI (no code needed) | Free + Pro |
Quick Start: Rebrand All Emails
Step 1: Create the override folder
Inside your active theme, create this folder:
your-theme/suredash/email-templates/
Step 2: Copy the wrapper file
Copy the following file into the folder you just created:
wp-content/plugins/suredash/email-templates/wrapper.php
Step 3: Edit your copy
Open your copied wrapper.php and make your design changes, such as updating colors, the layout, or your logo.
Important: Never edit plugin files directly. Plugin updates will overwrite any changes you make there.
Wrapper Template Reference
File locations
| Location | Path |
|---|---|
| Theme override (recommended) | your-theme/suredash/email-templates/wrapper.php |
| Plugin default | wp-content/plugins/suredash/email-templates/wrapper.php |
Available variable
| Variable | Description |
|---|---|
$email_body_content | Contains the full HTML of the email’s inner content |
To output the email content, use:
php
echo $email_body_content;
Email styling guidelines
Keep these best practices in mind when editing the wrapper:
- Use inline CSS only
- Use table-based layouts for structure
- Set a fixed width (600px is standard)
- Avoid background images
- Keep total email size under 100 KB
Examples
Add a header logo
Insert this above your content block, replacing the URL with your logo’s actual address:
html
<img src="https://example.com/logo.png" width="160" alt="Your Logo">
Change colors
Update the hex values in your inline styles to match your brand. You can change background color, text color, and border colors.
Add a footer
Add a footer below the content block. A common choice is a “Manage email preferences” link to give subscribers control over the emails they receive.
Per-Email Content Overrides (Pro)
SureDash Pro allows you to override the content of specific email types. The available templates are:
post-reply.phpcomment-reply.phpmention.php
Override path
Place your customized templates here:
your-theme/suredash/email-templates/<template-name>.php
Important: Your override files should contain only the email content, not a full HTML document. The wrapper is applied automatically. Do not include <html> or <body> tags.
Inner Template Variables (Pro)
Each template has access to a set of variables you can use to personalize the email content.
post-reply.php
| Variable | Description |
|---|---|
$recipient_name | The person receiving the email |
$author_name | The person who wrote the reply |
$post_title | The title of the post |
$post_url | Link to the post |
$reply_excerpt | A short excerpt of the reply |
$portal_name | The name of the portal |
comment-reply.php
| Variable | Description |
|---|---|
$recipient_name | The person receiving the email |
$author_name | The person who wrote the reply |
$comment_excerpt | A short excerpt of the original comment |
$reply_excerpt | A short excerpt of the reply |
$post_url | Link to the post |
$portal_name | The name of the portal |
mention.php
| Variable | Description |
|---|---|
$recipient_name | The person who was mentioned |
$author_name | The person who mentioned them |
$context | The context in which the mention occurred |
$content_excerpt | A short excerpt of the content |
$post_url | Link to the post |
$portal_name | The name of the portal |
From Name and From Email
You can update the sender name and email address directly from the WordPress admin panel. No code changes are needed.
Go to: WP Admin > SureDash > Settings > Emails
- Portal Name sets the sender name.
- From Email sets the sender’s email address.
Special characters in the sender name are supported automatically.
Troubleshooting
Override not working
Check the following:
- The file path matches exactly:
your-theme/suredash/email-templates/ - Your theme is active
- Your caching plugin (if any) has been cleared
- The file permissions allow the server to read the file
Emails showing raw HTML
- Update SureDash to the latest version
- Make sure your wrapper includes the full expected HTML structure
- Check the raw source of a test email to identify where the output breaks
Images not showing
- Use absolute URLs (not relative paths)
- Avoid using background images in CSS
- Make sure your images are hosted somewhere publicly accessible
Outlook display issues
- Use tables for all layout and structure
- Avoid modern CSS properties like flexbox or grid
- Stick to web-safe fonts for the best cross-client compatibility
Conclusion
Customizing your SureDash email templates is a straightforward way to make every notification feel like a natural part of your brand. Whether you update just the wrapper for a quick visual refresh or go deeper with Pro-level content overrides, even small changes can make a big difference in how your community experiences your portal.
Need more help? Explore the rest of our SureDash Documentation or reach out to our support team anytime.
We don't respond to the article feedback, we use it to improve our support content.