How can we help?

Table of Contents

How to use a different logo for the Pro Reports email only

If you wish to use a different logo in the email body compared to the logo in the attached PDF file, you can create a custom email template to achieve that. We will use one of the built-in templates as a starting point for the new custom email report.

  1. Locate one of the default email templates in the /mainwp-pro-reports-extension/templates/emails/ path.
    NOTE: You can download the MainWP Pro Reports Extension from your MainWP Account, or you can navigate to this path using FTP client.
  2. Copy the PHP file of one of the templates (in this example we will be using pro-report-email-modern.php) and rename it to a new desired filename
  3. Open the new PHP file in your favorite code editor
    1. Locate these three lines How to use a different logo for the Pro Reports email only 1
    2. And replace them with just one line with a hardcoded URL from your MainWP Dashboard that contains the desired logo
      How to use a different logo for the Pro Reports email only 2
  4. Once you are finished with the customization and the template is ready, upload the PHP file the /wp-content/uploads/mainwp/report-email-templates/ directory on your Dashboard site
  5. Once uploaded, the template will be available in the Email template dropdown
    How to use a different logo for the Pro Reports email only 3

 

Still Have a Questions?
Search for additional solutions in the MainWP Community or start your own discussion