Bootstrap for Contact Form 7

Wordpress Plugin
Download latest - 1.4.8

Developers

flixos90

Download Stats

Today 167
Yesterday 189
Last Week 1,301
All Time 213,825
Banner 772x250

Bootstrap for Contact Form 7 modifies all the output of the popular Contact Form 7 plugin to be fully compatible with the current version 3 of the popular CSS framework Bootstrap. What this means to you as a Bootstrap user: No additional CSS rules necessary - from now on, Contact Form 7 integrates seamlessly with the overall Bootstrap design. It is even possible to use different form layouts via Contact Form 7's "Additional Settings" tab.

This plugin is an addon to Contact Form 7.
The plugin requires Contact Form 7 to be activated, otherwise it won't change anything. Furthermore you should be using it in conjunction with a Bootstrap-based WordPress theme, otherwise the forms might look weird (and there would be no point in using this addon anyway).

Usage

Bootstrap for Contact Form 7 does not provide additional options itself, so you can continue using Contact Form 7 (almost) the same way you did before.

The plugin will not break your form's appearance, however it is recommended to adjust the contact form shortcodes to achieve perfect results: Generally, you should not be using HTML tags any longer to wrap the field shortcodes. They already include the complete Bootstrap-ready markup, including displaying labels. Read the Setup Guide for a quick introduction.

Advanced Features

The plugin brings some additional useful features to enhance your forms even more:

  • the form layout can be changed to a horizontal or inline one
  • the form's input size can be globally changed
  • checkbox and radio groups can be displayed either one per line, inline or as Bootstrap buttons
  • text inputs and textareas support Bootstrap's input group feature to add content before or after them
  • text inputs and textareas can show a character count (the [count] shortcode from Contact Form 7) inline
  • the captcha input field can show the captcha image inline
  • by using GET parameters in a URL to a contact form, field values can be predefined

The above features are explained in detail on the Other Notes page.

Basic Idea behind the Plugin

Lots of WordPress Themes are based on Bootstrap - and while it is the general approach to use CSS rules to style your HTML content, it is also possible the other way around - with many benefits.

When using a well-known framework which provides general styles for all the important components of a website, it can be time-consuming to apply the same styles to third-party plugins which (obviously) have not been written with a framework in mind. This is perfectly fine, but if you're using Bootstrap for your WordPress theme, you will certainly love the fact that you do not need to write CSS rules for the Contact Form 7 plugin any longer. It will all look like Bootstrap from the beginning so that it fits into your website design. If you're not using Bootstrap, this plugin is useless for you - but maybe you're just having an idea how you can adjust another popular WordPress plugin to integrate with another well-written CSS framework.


Releases (19 )

Version Release Date Change Log
1.4.8 2018-05-24
  • Added: support for input groups for number tags
  • Added: support for conditional loading of styles and scripts
  • Enhanced: Labels now allow basic inline HTML markup
  • Fixed: Acceptance validation not showing message
1.4.7 2018-03-08
  • Fixed: plugin compatibility with Contact Form 7 version 5.0 acceptance checkbox triggering submit button
1.4.6 2018-02-21
  • Fixed: plugin compatibility with Contact Form 7 version 5.0 acceptance checkbox triggering submit button
  • Fixed: plugin compatibility with Contact Form 7 after refactor removing jQuery.fn.wpcf7ClearResponseOutput() function
1.4.5 2017-10-03
  • Fixed: plugin compatibility with Contact Form 7 version 4.9 input type radio default required
1.4.4 2017-07-28
  • Fixed: critical bug with REALLY SIMPLE CAPTCHA not showing image
1.4.3 2017-07-28
  • Fixed: plugin compatibility fatal errors with Contact Form 7 version 4.8 related to form validation and REALLY SIMPLE CAPTCHA
  • Fixed: Contact Form 7 version 4.7 features are now being used
  • Fixed: correct styles for latest Contact Form 7 versions are now being printed
1.4.2 2016-12-17
  • Fixed: plugin compatibility fatal errors with Contact Form 7 version 4.6 with count and CAPTCHA shortcodes
1.4.1 2016-12-15
  • Fixed: plugin is now compatible with Contact Form 7 version 4.6 and its renamed functions / classes
1.4.0 2016-10-26
  • Enhanced: all form settings except submit_size, submit_type and required_html can now be overridden on a per-field basis by providing the setting name and its intended value as a shortcode attribute
  • Enhanced: a new value 'none' is now supported for the layout form setting which will prevent any wrapper from rendering; it is recommended to only use this for advanced field layouts
  • Enhanced: a new attribute label_class can now be added to shortcodes for additional label classes
  • Enhanced: input_before and input_after now support HTML by putting something like `{input_before}Content before{/input_before} into the content of a field shortcode (make sure to use curly braces); this method is now recommended and takes precedence over the old way
  • Fixed: the label of the free_text option in radio buttons / checkboxes is now displayed correctly
1.3.1 2016-02-07
  • Enhanced: alerts can now be made dismissible by defining the constant CF7BS_ALERT_DISMISSIBLE
  • Fixed: properly add for attributes to labels for checkbox and radio groups for accessibility
  • Fixed: wrapped checkbox and radio groups with <fieldset> for accessibility; needs to be manually enabled by defining the constant CF7BS_FIELDSET_WRAP (because of possible backwards compatibility issues with styling)
  • Fixed: ID is no longer created for button groups which have an empty ID specified
1.3.0 2016-01-20
  • Added: the new Google reCAPTCHA shortcode is now supported
  • Enhanced: added an additional filter to adjust form field arguments
  • Enhanced: a notice in the admin is now shown if the plugin cannot be initialized
  • Enhanced: language files no longer bundled in the plugin; now completely relies on language packs
  • Fixed: form element errors are now displayed correctly on horizontal forms and hidden on inline forms
  • Fixed: plugin constant definitions now happen on 'plugins_loaded' hook
  • Fixed: typo 'dismissable' in alert setting / class is now 'dismissible'
  • Fixed: readme link to 'Additional Settings' now translateable
1.2.4 2015-10-03
  • Tweaked: added textdomain for translate.wordpress.org
  • Fixed: defaults are now working correctly on all field types
  • Fixed: the label for attribute is no longer printed if no ID has been provided
1.2.3 2015-08-24
  • Enhanced: Arguments for every field are now filtered to allow detailed adjustments
1.2.2 2015-07-31
  • Fixed: CSS is now specific to the contact form to prevent conflicts
1.2.1 2015-07-30
  • Added: the captchar shortcode now supports an 'include_captchac' option to display the captcha image inline with the input field
  • Added: the textarea shortcode and all other text inputs now support an 'include_count' option to display their character count inline with them
  • Enhanced: the default grid column count of Bootstrap can now be overridden using the form property 'grid_columns'
  • Enhanced: the textarea shortcode now supports 'input_before' and 'input_after' (content is displayed above / below the textarea)
  • Enhanced: the submit button size can now be adjusted separately from the rest of the form's size
  • Tweaked: captcha images now have their image size adjusted to the 'size' form property by default
  • Tweaked: --- typed in the 'input_before' or 'input_after' option will render as a space in the frontend
  • Fixed: minlength and maxlength attributes are now honored by all text inputs and textareas
1.2.0 2015-07-03
  • Added: new CF7 count shortcode is now supported
  • Enhanced: form properties can now be modified without any code (i.e. without a filter); the properties can be defined in the new "Additional Settings" tab of Contact Form 7
  • Enhanced: textual inputs now support Bootstrap's input group feature
  • Enhanced: checkbox and radio types can now show an actual label; it is only used as the checkbox label if no option is provided
  • Tweaked: plugin now adheres to WordPress Coding Standards
  • Fixed: improved display method for captcha images
  • Fixed: textarea row attribute now honored
  • Fixed: free_text attribute on checkbox and radio types now honored
  • Fixed: form attribute 'group_type' now honored
  • Fixed: additional CF7 styles are now outputted in the head
  • Fixed: check if CF7 functions are available before calling them
1.1.1 2015-05-15
  • Fixed: exclusive option for checkbox now working
  • Fixed: default option for radio/checkbox now working
  • Fixed: PHP notice for radio/checkbox with only one option
  • Fixed: Captcha not valid message now only shows up once as it is supposed to
1.1.0 2015-04-27
  • Added: new attribute 'align' can be added to the submit button
  • Enhanced: submit button now positioned properly according to form layout
  • Fixed: select and radio/checkbox options now use the main plugin's get_data_option method
1.0.0 2015-01-10
  • First stable version

=