Contact Form

πŸ“§

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

OptionTypeDescription
ModeSelectFloating Button or Shortcode Only.
Button PositionSelectBottom-right or bottom-left.
Button IconSelectChoose from 12 Dashicon options.
Button TextTextCustom label for the floating button.
Recipient EmailEmailWhere form submissions are sent.
Show/Hide FieldsCheckboxesToggle Name, Email, Phone, Message fields.
Success MessageTextCustom message displayed after submission.

How to Configure

After installing and activating GP PowerKit:

  1. Enable Contact Form in Appearance β†’ GP PowerKit.
  2. Go to Appearance β†’ Customize β†’ GP PowerKit β†’ Contact Form.
  3. Choose Floating mode or Shortcode mode.
  4. 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)
jQueryNone
SubmissionAJAX via Fetch API with nonce verification
Emailwp_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.