There are many contact forms available for WordPress but most use a third party captcha service. The contact form on my website uses the following custom plugin that has a basic math captcha, no third party required.
How to Add a Contact Form to WordPress
Build a lightweight, mobile-responsive contact form with spam protection from scratch — no third-party plugin required, just a single PHP file and one shortcode.
What You’ll Get
Easy to Use
Install once, then drop the shortcode onto any page or post.
Mobile-Responsive
Looks great and works perfectly on all screen sizes.
Spam Protection
Built-in math captcha keeps bots out of your inbox.
Lightweight
No bloat — just a clean, fast, functional contact form.
How to Install
Open the Plugin File Editor
In your WordPress Admin Dashboard, go to Plugins → Plugin File Editor, or connect via FTP to access your site files directly.
Create the Plugin File
Inside the wp-content/plugins folder, create a new file named simons-simple-contact-form.php
Paste the Plugin Code
Copy the full PHP code below and paste it into the file you just created.
Loading...
Activate the Plugin
Head to Plugins in your WordPress admin panel, find Simon's simple contact form in the list, and click Activate.
Add the Shortcode to Your Page
Edit any page or post and paste the following shortcode exactly where you want the form to appear:
Loading...
🎉 You’re Done!
Your simple, secure, mobile-ready contact form is now live. All messages will be delivered to the admin email address configured in your WordPress settings.




