Themeable Contact Form
This plugin creates a simple contact form that allows you to customize the template to match your theme.
The contact form has only three fields, which is great for keeping things simple:
- name
- message
All fields are required in order to submit the form.
Upon successful submission, a simple thank you message will be displayed to the visitor. This message can be customized on the settings page.
Form Security
The plugin uses WordPress’ nonce field functionality, as well two honeypot fields in order to prevent spam submissions.
All submitted data is validated and sanitized using the GUMP PHP input validation class.
Form Templates
The form has three basic styles:
- Plain – only basic styles applied; uses the browsers’ native field validation along side the server side validation
- Bootstrap – Bootstrap 4 markup and client side validation
- Foundation – Foundation 6 for Sites markup and Abide client-side validation
Note – the Bootstrap and Foundation templates only provide the HTML markup. Your theme must include either the Bootstrap 4 or Foundation 6 framework in order to make the form display and for the client-side validation to function properly.
In addition to these templates, you can override the form display with custom markup to match your theme. Simply copy the default template templates/contact-form.php to contact-form/contact-form.php within your theme, and then make sure to select ‘Default’ under ‘Form Template’ in the plugin settings page.