Conditionally Load CF7

Description

In its default settings, Contact Form 7 loads its JavaScript and CSS stylesheet on every page. This slows page loading and taxes server and client resources. Use this plugin to control which pages the scripts load on.

NEW in v1.0.15: The plugin also prevents scripts and styles from the following plugins from loading. If you are using any other plugin that extends Contact Form 7 and loads its scripts on all pages, please open a support ticket and we will look into adding it.

  • Contact Form 7 Conditional Fields
  • Contact Form 7 Multi-Step Forms
  • Contact Form CFDB7
  • Drag and Drop Multiple File Upload — Contact Form 7

Translations

  • English: Default language, always included

Would you like to help translate Conditionally Load CF7 into your own language? You can do that here!

Installation

USING THE WORDPRESS DASHBOARD

  1. Navigate to “Add New” in the plugins dashboard
  2. Search for “Conditionally Load CF7”
  3. Click “Install Now”
  4. Activate the plugin on the Plugin dashboard
  5. Go to Settings -> Conditionally Load CF7, upload your fonts, and configure the settings.

UPLOADING IN WORDPRESS DASHBOARD

  1. Click the download button on this and save “conditionally-load-cf7.zip” to your computer
  2. Navigate to “Add New” in the plugins dashboard
  3. Navigate to the “Upload” area
  4. Select “conditionally-load-cf7.zip” from your computer
  5. Click “Install Now”
  6. Activate the plugin in the Plugin dashboard
  7. Go to Settings -> Conditionally Load CF7, upload your fonts, and configure the settings.

USING FTP

  1. Download the Conditionally Load CF7 ZIP file
  2. Extract the Conditionally Load CF7 ZIP file to your computer
  3. Upload the “conditionally-load-cf7” directory to the /wp-content/plugins/ directory
  4. Activate the plugin in the Plugin dashboard
  5. Go to Settings -> Conditionally Load CF7, upload your fonts, and configure the settings.

DOWNLOAD FROM GITHUB

  1. Download the plugin via https://github.com/seezee/conditionally-load-cf7
  2. Follow the directions for using FTP

FAQ

How may I help improve this plugin?

I’d love to hear your feedback. In particular, tell me about your experience configuring the plugin. Are the instructions clear? Do I need to reword them? Did I leave out something crucial? You get the drift.

I’d like to do more

I’m looking for collaborators to improve the code. If you are an experienced WordPress programmer, hit me up!

I’d like to do even more

Feel free to send a donation to my Paypal account. Or buy me a beer if you’re in town.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Conditionally Load CF7” is open source software. The following people have contributed to this plugin.

Contributors

“Conditionally Load CF7” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Conditionally Load CF7” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.22

  • 2021-05-13
  • Tested up to WordPress 5.7.2

1.0.21

  • 2021-04-21
  • Tested up to WordPress 5.7.1

1.0.20

  • 2021-03-15
  • Update README

1.0.19

  • 2021-03-12
  • Tested up to WordPress 5.7

1.0.18

  • 2021-02-24
  • BUGFIX: Delete debugging code from main plugin file

1.0.17

  • 2021-02-24
  • BUGFIX: Delete debugging code from class-cf7-conditional-settings
  • Add check for Contact Form 7 ReCaptcha module

1.0.16

  • 2021-02-23
  • BUGFIX: Fixed admin styles not loading
  • Add check for Contact Form CFDB7
  • Add check for Drag and Drop Multiple File Upload — Contact Form 7
  • Separate logic for scripts and styles

1.0.15

  • 2021-01-08
  • BUGFIX: Remove space after commas in $result string; otherwise plugin chokes after first item in string
  • Check if scripts are enqueued & registered before unloading them
  • Add check for CF7 Multi Drag & Drop Multi-File Upload plugin
  • Add check for CF7 Multi-Step plugin

1.0.14

  • 2021-01-08
  • Update ‘Tested up to WordPress 5.6’ in README
  • Fix missing version number

1.0.13

  • 2021-01-07
  • Tested up to 5.6
  • Reformat code to meet WordPress coding standards

1.0.12

  • 2020-10-08
  • Tested up to 5.5.3
  • Use Dashicons coffee glyph instead of FontAwesome coffee glyph in plugin meta

1.0.11

  • 2020-09-28
  • SECURITY FIX: better escaping and sanitization of translatable strings

1.0.10

  • 2020-09-27
  • Bugfix: fix mismatched text-domain
  • Fix some typos in microcopy
  • Refactor i18n

1.0.9

  • 2020-09-04
  • Tested up to WordPress 5.5.1

1.0.8

  • 2020-06-16
  • Tested up to WordPress 5.4.2

1.0.7

  • 2020-04-01
  • Tested up to WordPress 5.4.1

1.0.6

  • 2020-04-01
  • Tested up to WordPress 5.4

1.0.5

  • 2020-03-25
  • Remove surrounding underscores from contant ‘CF7CL_PATH’ to meet WordPress coding standards
  • Add POT file

1.0.4

  • 2020-03-25
  • Change plugin display name to meet WordPress trademark requirements
  • Change constant names to meet WordPress coding standards
  • Modify select namespaces

1.0.3

  • 2020-03-20
  • Update README
  • Add action links and plugin meta to plugins page

1.0.2

  • 2020-03-18
  • BUGFIX: lower wp_enqueue_scripts priority so it fires after CF7

1.0.1

  • 2020-03-13
  • Initial release