WP Manifestindependent plugin directory
manifest / forms / cf7-form-auto-class

CF7 Form Auto Class

Add form slug as a CSS class to the Contact Form 7 output.

by Robert Went · github.com/robwent/cf7-form-auto-class

0stars
15release downloads
0forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/robwent/cf7-form-auto-class/releases/download/1.0.0/cf7-form-auto-class.zip

Readme

Contact Form 7 Auto Class

When using HubSpot and other CRMs to track native form submissions, the forms are identified by their class name.
By default, all cf7 forms will show up as ".wpcf7-form, .init".

There is an attribute that can be added to the shortcode used to embed the form html_class="my-custom-class".

This plugin checks to see if the html_class attribute has been used, and if not, adds the slug of the form title.

All of your forms will then be separated out in the CRM so you can easily identify which form each submission came from.

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
1.0.0 Mar 17, 2023 cf7-form-auto-class.zip 15