描述
Ajax Simple Contact Form is a lightweight, easy-to-use contact form plugin that submits without reloading the page. Just install, configure, and add [ajax_contact_form] to any page or post.
Version 2.0 is a complete rewrite with modern features, improved security, and full WordPress 6.8 compatibility.
✨ What’s New in v2.0
- HTML email template — professional, beautifully formatted emails in your inbox
- Reply-To support — clicking reply in your email client goes directly to the sender
- CC email — send a copy to an additional address
- Honeypot spam protection — lightweight, no API key required
- Phone field — optional, with required toggle
- Subject field — optional, with required toggle
- Custom field labels — rename any field
- 3 form styles — Default, Minimal, Bordered
- Button color picker — match your brand
- Border radius control — square, rounded, or pill
- Inline validation — errors show instantly without page reload
- Multiple forms — place shortcode on multiple pages, all work independently
- No jQuery dependency — pure vanilla JS, faster loading
- PHP 8.x compatible
- WordPress 6.8 compatible
📋 Shortcode
Place anywhere in posts, pages, or widgets:
[ajax_contact_form]
Or in a PHP template:
<?php echo do_shortcode('[ajax_contact_form]'); ?>
⚙️ Admin Settings
All settings under Settings Contact Form:
- Fields — Toggle name, phone, subject fields. Set required status. Enable honeypot spam protection.
- Email — Set recipient, email subject, reply-to, CC address, success/error messages.
- Labels — Customize all field labels and button text.
- Style — Choose form style, button color, text color, border radius.
安装
- Upload the plugin to
/wp-content/plugins/ajax-simplecontact-form/or install via Plugins Add New. - Activate the plugin.
- Go to Settings Contact Form to configure.
- Add
[ajax_contact_form]to any page or post.
常见问题
-
Does it submit without page reload?
-
Yes. The form uses AJAX — submissions happen instantly without any page refresh.
-
Is it compatible with any theme?
-
Yes. The form uses minimal, theme-neutral styles that blend with any WordPress theme.
-
Can I have multiple forms on different pages?
-
Yes. Add
[ajax_contact_form]to as many pages as you like. Each form works independently. -
Does it protect against spam?
-
Yes. The honeypot method is enabled by default — it catches bots without requiring a CAPTCHA or API key.
-
Can I customize the form fields?
-
Yes. You can show/hide the name, phone, and subject fields, set which are required, and rename all labels under Settings Contact Form.
评价
贡献者及开发者
更新日志
2.0.0
- Complete rewrite for WordPress 6.8 and PHP 8.x compatibility
- Added beautiful HTML email template
- Added Reply-To header — replies go back to sender
- Added CC email support
- Added honeypot spam protection
- Added optional phone field with required toggle
- Added optional subject field with required toggle
- Added custom field labels
- Added 3 form styles: Default, Minimal, Bordered
- Added button color and border radius controls
- Added inline field validation with instant error messages
- Added support for multiple forms on same site
- Removed jQuery dependency — pure vanilla JavaScript
- Removed dead demo and YouTube links
- Improved security: nonces, sanitization, escaping throughout
1.0
- First Release



