Subscribe On YouTube

Join other subscribers and enjoy other Divi video tutorials!

How To Style The Divi Contact Form Success Message

Nelson Miller Profile Orange
In this tutorial I will show you how to style with CSS the Divi Contact Form module success message that shows after a form is submitted.

▶️ Please watch the video above to get all the exciting details! 👆

FYI: You can do this with a setting directly in the Divi Contact Form module with our popular Divi Contact Form Helper plugin! Take a look, it is so easy!

Divi Contact Form Helper by Pee Aye Creative

1. Add A Custom CSS Class To The Divi Contact Form

The first step to styling the Divi Contact form module success message after a form is submitted is to add a custom CSS class to the module. This is used to target the module with the code shared in step 2 of this tutorial. Open the module settings and go to the Advanced tab. Go to the CSS IDs & Classes toggle. Place the class “pa-contact-form-success-message” in the CSS Class input field of the Contact Form module.

add custom CSS class to style success message in the Divi Contact Form module

2. Add CSS To Style The Divi Contact Form Success Message

This is a very quick and simple tutorial, and we are almost finished already. The second step is to add some CSS code to your site to style the Divi Contact Form success message text. This is necessary because there are no design settings for this in the module (without our plugin).

If you are using our free Divi child theme, place this snippet into the style.css file. Otherwise, place this in your Divi>Theme Options>Custom CSS code box. If you need help, check out our complete guide on Where To Add Custom Code In Divi.

/*style the contact form success message text*/

.et-pb-contact-message p {
  font-size: 28px;
  line-height: 1.7em;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  padding: 50px!important;
  border: 2px solid #000000;
  border-radius: 10px;
  background: #000000;
}

The main thing to do now is to customize the values. This CSS is meant to be a base for you to make your own design adjustments to meet your preferences. 

Do It With A Setting!

Make life easier and use the Divi Contact Form Helper plugin instead, the ultimate Divi Contact Form upgrade with awesome features and settings!

Divi Contact Form Helper by Pee Aye Creative
success message design settings in the Divi Contact Form Helper plugin

The Divi Contact Form Helper plugin adds a new toggle to the existing Divi Contact Form module in the Design tab called Success Message Text with all the normal font and text design settings you need to style the success message using familiar Divi settings.

Subscribe For More Things Like This!

At the start of each month, we send out a recap newsletter from the month before with family news, Divi news, our latest tutorials, and product news. Occasionally, if the news is too exciting to wait, we will send out another email separate from the monthly newsletter. That’s what you get when you subscribe, and of course you can unsubscribe if you are no longer interested!

Blog Post Optin

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy

8 Comments

  1. Ben Hernandez

    Hi Nelson,

    I need help! Is there code to customize the headers of the email submissions or place a line return to make the submissions easier to read? I receive an Outlook email when a form is submitted but all the responses like Title, Date, Email, etc. are running into each other. Bolding the Titles or putting a line return in between each response would be easier on the eyes to read the form. Can you help? I’m a novice coder.

    Reply
  2. Eric Wilson

    Nelson,
    Possible to hide the success message all together? I am using the divi contact form inside of a popup (divi supreme) and would like bypass the message when the user submits the contact form. Much appreciated! -Eric

    Reply
  3. Troy Wilson

    Curious….
    When I change the values to make it a white background with rounded corners, the corners disappear for some reason. After playing with it I realized the border is on the inside of another div/box/cell that has a white background. So even when using a solid border the corners still have white even if they rounded. This is being used over a blue background. Any idea where to change the colour to the rear area to transparent?

    .et-pb-contact-message p {
    font-size: 22px;
    line-height: 1.7em;
    color: #a80000;
    text-align: center;
    font-weight: bold;
    padding: 40px!important;
    border: 2px solid #fff;
    border-radius: 10px;
    background: #fff;
    }

    Reply
    • Hemant Gaba

      Hi Troy!

      The following code should work fine:

      .et-pb-contact-message p {
      font-size: 22px;
      line-height: 1.7em;
      color: #a80000;
      text-align: center;
      font-weight: bold;
      padding: 40px!important;
      border: 2px solid #fff;
      border-radius: 10px;
      background: transparent;
      }

      https://prnt.sc/8z-h_3FppgIr

      Reply
  4. Lindy

    I have used this code before and it worked great, but now it is giving me an an error – “Expected RBRACE” and has a red X. The code no longer works.

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Recent Posts

0

Your Cart