π§
Contact Form for GeneratePress
Pro Module
A floating contact form button with AJAX submission and email delivery.
Features
- Floating Contact Button — A floating button (bottom-right or bottom-left) opens a slide-in panel with the contact form. Mimics chat-widget UIs.
- AJAX Submission — Form submits via the Fetch API without page reload. Instant success/error feedback with proper ARIA accessibility.
- Built-in Spam Protection — Includes server-side spam filtering with optional reCAPTCHA support.
- Configurable Form Fields — Show/hide Name, Email, Phone, and Message fields independently.
- Shortcode Support — Use
[gp_pk_contact_form]anywhere on your site for custom placement. - No External Dependencies — All form processing is handled internally. No third-party form services required.
Configuration Options
| Option | Type | Description |
|---|---|---|
| Mode | Select | Floating Button or Shortcode Only. |
| Button Position | Select | Bottom-right or bottom-left. |
| Button Icon | Select | Choose from 12 Dashicon options. |
| Button Text | Text | Custom label for the floating button. |
| Recipient Email | Email | Where form submissions are sent. |
| Show/Hide Fields | Checkboxes | Toggle Name, Email, Phone, Message fields. |
| Success Message | Text | Custom message displayed after submission. |
How to Configure
After installing and activating GP PowerKit:
- Enable Contact Form in Appearance β GP PowerKit.
- Go to Appearance β Customize β GP PowerKit β Contact Form.
- Choose Floating mode or Shortcode mode.
- Configure button labels, fields, and the recipient email address.
Frequently Asked Questions
Does it include spam protection?
Yes, built-in server-side spam filtering is included. Optional reCAPTCHA support is coming in a future update.
Are submissions stored in the database?
By default they are emailed to the configured recipient. Database storage can be optionally enabled.
Can I use the form without the floating button?
Yes, choose βShortcode Onlyβ mode and place [gp_pk_contact_form] anywhere using a shortcode block or widget.
Does it work with SMTP plugins?
Yes, the form uses WordPress’s built-in wp_mail(), so it works with any SMTP plugin you have installed.
Is it accessible?
Yes, the form uses ARIA attributes, proper labels, and a polite region for status messages.
Can I receive submissions to multiple emails?
Currently one recipient is supported. Use email forwarding or a filter to send to multiple addresses.
Compatibility
- β GP Premium β Compatible.
- β SMTP plugins β Works with any SMTP plugin.
Technical Details
| File Size | ~3 KB (CSS + JS) |
| JavaScript | ~2 KB (vanilla JS, Fetch API) |
| jQuery | None |
| Submission | AJAX via Fetch API with nonce verification |
wp_mail() with error handling | |
| Shortcode | [gp_pk_contact_form] |
Related Modules
Combine this module with other GP PowerKit modules for a complete site toolkit:
- Popup Messages β Add cookie consent or notification popups.
- Theme Meta β Display contact info across your site.