With this lightweight plugin you can create a contact form.
To display your form you can use a block, a shortcode or a widget.
Form contains fields for Name, Email, Subject and Message. Also included are a sum field (to avoid abuse) and a privacy consent checkbox.
You can customize your form via the settings page or by adding attributes to the block, the shortcode or the widget.
It’s also possible to display form submissions in your dashboard.
After installation add the VS Contact Form block or the shortcode [contact]
to a page to display your form.
You can also go to Appearance > Widgets and use the VS Contact Form widget.
You can customize your form via the settings page. This page is located at Settings > VS Contact Form.
Settings and labels can be overridden when using the relevant attributes below.
This can be useful when having multiple contact forms on your website.
You can also customize your form by adding attributes to the block, the shortcode or the widget. Attributes will override the settings page.
Misc:
class="your-class-name"
email_to="your-email-address"
email_to="first-email-address, second-email-address"
from_header="your-email-address"
subject="your subject"
subject_auto_reply="your subject"
Field labels:
label_name="your label"
label_email="your label"
label_subject="your label"
label_message="your label"
label_privacy="your label"
label_submit="your label"
Field placeholders:
placeholder_name="your placeholder"
placeholder_email="your placeholder"
placeholder_subject="your placeholder"
placeholder_message="your placeholder"
Field error labels:
error_name="your label"
error_email="your label"
error_subject="your label"
error_sum="your label"
error_message="your label"
error_message_has_links="your label"
error_message_has_links="your label"
error_message_has_email="your label"
error_banned_words="your label"
error_privacy="your label"
Messages:
thank_you_message="your message"
auto_reply_message="your message"
Example: [contact email_to="your-email-address" subject="your subject" label_submit="your label"]
When using the block or the widget, don’t add the main shortcode tag or the brackets.
Example: email_to="your-email-address" subject="your subject" label_submit="your label"
Via the settings page you can activate form submissions being displayed in your dashboard.
After activation go to menu item “Submissions”. Your form submissions will be listed here.
SMTP (Simple Mail Transfer Protocol) is an internet standard for sending emails.
By default, WordPress uses the PHP mail()
function for sending emails. But when using SMTP there’s less chance your form submissions are being marked as spam.
You must install an additional plugin for this, such as WP mail SMTP.
If you’re using a caching plugin and want to avoid conflicts with the contact form, I recommend excluding your contact page from caching. This can be done via the settings page of most caching plugins.
Please take a look at the FAQ section.
Translations are not included, but the plugin supports WordPress language packs.
More translations are very welcome!
The translation folder inside this plugin is redundant, but kept for reference.
Without help and support from the WordPress community I was not able to develop this plugin, so thank you!