Skip to main content

How to Include the Post/Page's Title in the Contact Form's Email Body in Divi 5

Learn how to use inline Dynamic Content to include the Page's Title in the Email's body from where the Contact Form was submitted.

With the introduction of inline dynamic content, it is easy to include dynamic content in the email body when using the Contact Form module.

  1. For each Contact Form module where you want to include the Post/Page's title in the Email body, open its settings by clicking on the Gear icon or by clicking on the module itself.

    Divi 5 - Contact Form module

  2. In the Content tab, click on the Email option group.

    Divi 5 - Email option group

  3. In the Message Pattern field, add any pattern that suits your use case, for example:

    • Name: %%Name%%

    • Email: %%Email%%

    • %%Message%%

  4. Click on the Dynamic Content icon.

    Divi 5 - Open Dynamic Content selection

  5. Choose the Post/Archive Title option.

    Divi 5 - Insert the Post/Archive title dynamic content

Note:

  • Make sure you use the correct field IDs when composing the Message Pattern. The %%Name%%, %%Email%%, and %%Message%% represent the Name, Email, and Message default field IDs.

Did this answer your question?