這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Lightweight Contact Form

描述

This is the absolute lightest contact form for WordPress. This plugin is designed for the fastest pagespeed. So, there is no CSS stylesheet, no extra files, and no overhead. And no spam. It uses Google reCAPTCHA v3 so as not to annoy your users with any extra step, while keeping your contact form spam-free.

If all you need is a simple contact form to take messages from site visitors, and fast page speed is your priority, this minimal plugin is for you.

Although this form is lightweight and simple, it blocks SPAM, and has both client-side and server-side validation. This is a solid and dependable contact form.

NOTE: To make use of the extra spam protection from Google reCAPTCHA v3, you must get your reCAPTCHA v3 API keys from Google. This is a free and easy step, and is strongly recommended.

Features

  • Emails are sent to the admin email which is set in your WordPress General Settings.
  • Add the contact form to any page with a shortcode.
  • Both JavaScript client-side and PHP server-side validation.
  • It’s just one file. No extra CSS or JavaScript files. This is for the most lightweight footprint.

You must add any CSS styling yourself. This is easy and is explained in the installation guide.

(In addition, if you need extra fields or different forms for different pages, see the Advanced: Add Custom Form Fields section.)

螢幕截圖

  • This is how the contact form appears using the default WordPress theme.

安裝

Install and Activate

  1. Install and activate the plugin in your WordPress dashboard by going to Plugins –> Add New.
  2. Search for “Lightweight Contact Form” to find the plugin.
  3. When you see “Lightweight Contact Form,” click “Install Now” to install the plugin.
  4. Click “Activate” to activate the plugin.

Quick Setup

Add the contact form to any page with this shortcode:

[lcf_contact_form]

Optionally, add these CSS styles to align the form fields.

This step is strongly recommended: To stop SPAM on your contact form, get your free Google reCAPTCHA keys. Then, enter those keys in your WordPress admin settings by going to Settings > Discussion. On the Discussion Settings page, scroll all the way down to “Lightweight Contact Form” where you’ll find the place to enter your reCAPTCHA v3 Site key and reCAPTCHA v3 Secret key.

That is all. Now you have a lightweight, working contact form on your WordPress site. When someone fills out and submits your contact form, it will be sent to the admin email which is set in your WordPress General Settings.

To try the contact form, visit that page on your site.

(If you need extra fields or different forms for different pages, see the Advanced: Add Custom Form Fields section.)

常見問題

How do I stop SPAM on the contact form?

To stop SPAM on your contact form, get your free Google reCAPTCHA keys. Then, enter those keys in your WordPress admin settings by going to Settings > Discussion. On the Discussion Settings page, scroll all the way down to “Lightweight Contact Form” where you’ll find the place to enter your reCAPTCHA v3 Site key and reCAPTCHA v3 Secret key.

評價

2020年7月20日
The Lightweight Contact Form plugin is the Best WP contact form, very simple, very light, security in mind with Google reCAPTCHA v3, awesome on any themes, and more ... and FREE !!! I hope that Isabel Castillo will continue to update this fantastic and lightest contact form plugin in the future ... For sure, 5 STARS ... Thank you Chris
2020年4月24日
Performs as advertised -and with recaptcha support!
閱讀全部9個評價

貢獻者及開發者

“Lightweight Contact Form” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

Lightweight Contact Form 外掛目前已有 3 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 Lightweight Contact Form 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

2.0, 2019-01-09

  • New – Added the ability to use Google reCAPTCHA v3 to stop spam on your contact form. To use this new protection, get your free Google reCAPTCHA keys. Then, enter those keys in your WordPress admin settings by going to Settings > Discussion. On the Discussion Settings page, scroll all the way down to “Lightweight Contact Form” where you’ll find the place to enter your reCAPTCHA v3 Site key and reCAPTCHA v3 Secret key.
  • New – Removed the math captcha box, again.

1.5.2, 2018-08-06

  • Tweak – Add back the math captcha box which was previously removed in version 1.5. It is added again because the honeypot field is not working well enough to eliminate spam.

1.5.1, 2018-03-07

  • Tweak – Added 2 (optional) semi-colons.

1.5, 2018-03-07

  • New – Removed the math captcha box in favor of better spam-blocking.

1.4.1, 2017-10-02

  • Fixed – Running submission checks outside a function.
  • Fixed – Proper escaping.

1.4, 2017-09-28

  • New – Internationalize all strings to add support for translations.
  • New – Remove jQuery dependency.

1.3, 2017-09-26

  • New – New filters allow insertion of custom fields.
  • New – Add shortcode atts for message_label.
  • New – Move form url to top in email message.
  • Fix – Fixed HTML typo in email and math fields.

1.2, 2017-03-23

  • New – Eliminated the jQuery Validation plugin in favor of some smaller jQuery validation for the form fields. This eliminates the need for an extra file.

1.1, 2017-03-22

  • New – Removed the mandatory step.

1.0, 2017-02-11

  • New – Removed fieldset elements for better mobile style.

0.9, 2016-11-20

  • New – Remove max-length from textarea.

0.8.1, 2015-08-08

  • New – Remove redundant date from email.

0.8, 2015-08-08

  • Initial public release.