Skip to content

Documentation

Extensive Documentation for PowerPack & WooPack to help you with common questions and issues.

PowerPack

⌘K
  1. Home
  2. Docs
  3. PowerPack
  4. Modules
  5. Contact Form
  6. How to change Validation Messages in the Contact Form module?

How to change Validation Messages in the Contact Form module?

You can change Validation messages in the Contact Form module by adding the below-mentioned code in your current theme’s functions.php file.

Here is the list of messages with their key codes:

Suppose you want to change the Validation Message for the name, then you need to enter the below-mentioned code to your current theme’s functions.php file:

Here are the screenshots that will better explain how changing validation message looks after adding the above code to the site:

Before:

Before adding Custom Code
Before adding Custom Code

After:

After adding Custom Code
After adding Custom Code
🎃 🎃

⚡ HALLOWEEN FLASH SALE! Save up to 40% OFF  Claim Your Treats ➔

🎃 Wait! Your Halloween Savings Are Still Here!

You're about to miss our biggest sale of the year. Save up to 40% and secure unlimited site licenses before the Halloween sale ends.

×