If you are using Divi wordpress theme, to build custom layouts for your wordpress posts, pages or projects, and use the Contact form Module to each of the post or project, you will notice that the subject of the email you will receive is not to good.

Let’s just think that you have an affiliate website like this one, when for each theme (project) you want to have this Contact Form module which can be use if someone will ask you for a particular topic. For example, I put on my website some of the themes that Elegant Themes offers, and for each theme at the bottom I have a contact form.

I want the email subject I will receive to be: Customization request for {project_name}.

A more relevant example will be:
Joe Doe, will find this project called Divi WordPress theme and he will fill out the contact form to ask for a customization support.

My email which I will receive from Joe Doe, will have the subject: Customization request for Divi WordPress theme, which is the actual title for this particular project.

To do that, we will need to edit/modify the function.php file.

First of all make sure to backup this file, open it in your favorite text editor and go to line 2115 or search for $et_site_name = get_option( 'blogname' );. You can delete this line or you can leave it. After this line add this line of code:

Next replace this block of code (line 2124):

with this:


Contact form module - Example Inbox

Example Inbox

Contact form module - Example Email

Example Email

Finally save the file and uploaded to your server.

As a result when someone will use Divi Contact Form Module, the email subject you will receive will be the page title.

Share This
%d bloggers like this: