All Projects → cedaro → Gravity Forms Iframe

cedaro / Gravity Forms Iframe

A Gravity Forms add-on to embed a form in an auto-resizing iframe on external sites.

Projects that are alternatives of or similar to Gravity Forms Iframe

Wp Graphql Yoast Seo
This is an extension to the WPGraphQL plugin for Yoast SEO
Stars: ✭ 120 (-10.45%)
Mutual labels:  wordpress, wordpress-plugin
Amp Wp
Enable AMP on your WordPress site, the WordPress way.
Stars: ✭ 1,706 (+1173.13%)
Mutual labels:  wordpress, wordpress-plugin
Wp Pagenavi
Adds a more advanced paging navigation interface to your WordPress blog.
Stars: ✭ 121 (-9.7%)
Mutual labels:  wordpress, wordpress-plugin
Regenerate Thumbnails
WordPress plugin for regenerating thumbnails of uploaded images. Over 1 million active users and counting.
Stars: ✭ 115 (-14.18%)
Mutual labels:  wordpress, wordpress-plugin
User Switching
WordPress plugin that provides instant switching between user accounts.
Stars: ✭ 125 (-6.72%)
Mutual labels:  wordpress, wordpress-plugin
Wp Gfm
WordPress Plugin for PHP-Markdown and GitHub Flavored Markdown
Stars: ✭ 117 (-12.69%)
Mutual labels:  wordpress, wordpress-plugin
Notification
WordPress Notification plugin
Stars: ✭ 128 (-4.48%)
Mutual labels:  wordpress, wordpress-plugin
Subtitles
Add subtitles into your WordPress posts, pages, custom post types, and themes. No coding required. Simply activate Subtitles and you're ready to go.
Stars: ✭ 113 (-15.67%)
Mutual labels:  wordpress, wordpress-plugin
Wp Sweep
WP-Sweep allows you to clean up unused, orphaned and duplicated data in your WordPress. It also optimizes your database tables.
Stars: ✭ 125 (-6.72%)
Mutual labels:  wordpress, wordpress-plugin
Wponion
~ Lightweight, Flexible & Rapid WP Development Framework ~
Stars: ✭ 125 (-6.72%)
Mutual labels:  wordpress, wordpress-plugin
Wp Postratings
Adds an AJAX rating system for your WordPress blog's post/page.
Stars: ✭ 115 (-14.18%)
Mutual labels:  wordpress, wordpress-plugin
Wp Slack
This plugin allows you to send notifications to Slack channels when certain events in WordPress occur.
Stars: ✭ 130 (-2.99%)
Mutual labels:  wordpress, wordpress-plugin
Piklist
The most powerful framework available for WordPress.
Stars: ✭ 114 (-14.93%)
Mutual labels:  wordpress, wordpress-plugin
Wordpress Activitypub
ActivityPub for WordPress
Stars: ✭ 118 (-11.94%)
Mutual labels:  wordpress, wordpress-plugin
Acf Codifier
A wrapper class to help write more readable ACF field declarations.
Stars: ✭ 114 (-14.93%)
Mutual labels:  wordpress, wordpress-plugin
Antispam Bee
„... another popular solution to fight spam is Antispam Bee“ – Matt Mullenweg, Q&A WordCamp Europe 2014
Stars: ✭ 124 (-7.46%)
Mutual labels:  wordpress, wordpress-plugin
S3 Uploads
The WordPress Plugin to Store Uploads on Amazon S3
Stars: ✭ 1,573 (+1073.88%)
Mutual labels:  wordpress, wordpress-plugin
Wp Cache Remember
Helper for the WordPress object cache and transients.
Stars: ✭ 111 (-17.16%)
Mutual labels:  wordpress, wordpress-plugin
Sportspress
An open source league statistics plugin for WordPress created by ThemeBoy.
Stars: ✭ 124 (-7.46%)
Mutual labels:  wordpress, wordpress-plugin
Restsplain
WordPress REST API documentation generator
Stars: ✭ 126 (-5.97%)
Mutual labels:  wordpress, wordpress-plugin

Gravity Forms Iframe Add-on

Embed a Gravity Form in an iframe on any site.

Contributors: Brady Vercher
License: GPL-2.0+

The typical process to embed a Gravity Form on a site where the plugin isn't installed requires:

  1. Developing a custom page template with necessary code to output form scripts and styles.
  2. Creating a new page in WordPress.
  3. Inserting the form shortcode in the new page.
  4. Manually writing an iframe tag with the page permalink and giving it a static height.

With the Gravity Forms Iframe add-on, just enable a setting to allow the form to be embedded and copy the code snippet. That's it. As a bonus, the iframe automatically resizes whenever the form height changes -- for instance, when fields are shown or hidden due to conditional logic.

Features

  • Selectively enable embedding for individual forms.
  • Auto-resizing iframes.
  • Override embed templates in a theme or child theme.
  • Override settings via the embed src query string.
  • Extends the Gravity Forms add-on API to seamlessly integrate with the WordPress and Gravity Forms interface.
  • Protocol-relative URLs for embedding on secure sites (both sites need SSL).

Settings

The form title and description can be hidden independent of regular form display by toggling a checkbox after enabling the embedding setting.

Form Iframe Settings Screenshot The form's iframe settings panel.

Overrides for Individual Iframes

If the title and description settings need to be changed per embed, they can be modified in the iframe src query string.

  • dt: Set to 1 to display the form title; 0 to hide.
  • dd: Set to 1 to display the form description; 0 to hide.

Example: gfembed/?f=1&dt=0&dd=0

Auto-resizing Script

If the auto-resizing functionality isn't needed for a particular form, adjust the iframe's height attribute to accomodate the form and don't include the <script> tag when copying the embed code. Leaving off the script tag will save an HTTP request.

Confirmation Screen

If you redirect users to another page upon submission and would like the iframe to automatically resize, include the following in the confirmation page: add_filter( 'gfiframe_print_resize_ping_script', '__return_true' );

Template Hierarchy

Templates can be added in a theme or child theme to override the plugin's template. Use the following template names:

  • gravity-forms-iframe-{$form_id}.php
  • gravity-forms-iframe.php

Installation

Upload

  1. Download the latest release from GitHub.
  2. Go to the Plugins → Add New screen in your WordPress admin panel and click the Upload tab at the top.
  3. Upload the zipped archive.
  4. Click the Activate Plugin link after installation completes.

Manual

  1. Download the latest release from GitHub.
  2. Unzip the archive.
  3. Copy the folder to /wp-content/plugins/.
  4. Go to the Plugins screen in your WordPress admin panel and click the Activate link under Gravity Forms Iframe.

Read the Codex for more information about installing plugins manually.

Git

Clone this repository in /wp-content/plugins/:

git clone [email protected]:bradyvercher/gravity-forms-iframe.git

Then go to the Plugins screen in your WordPress admin panel and click the Activate link under Gravity Forms Iframe.

Changelog

2.0.1

  • Make GravityFormsIframe_Addon::form_settings_fields() compatible with the parent class.

2.0.0

  • Moved to the Cedaro GitHub account.
  • Refactored the plugin structure.
  • Introduced a 'gfiframe_head' action in the template header.

1.0.3

  • Defined 'gravityforms_iframe' capability in the Add-on class to integrate with the Members plugin.

1.0.2

  • Fixed a long-standing bug that may have prevented scripts from loading in the iframe template.
  • Fixed deprecated notices in Gravity Forms 1.9+.

1.0.1

  • Deprecated the .php extension in the embed rewrite rule to prevent conflicts with WordPress Multisite.
  • Disabled the WordPress toolbar in iframes when forms are embedded on the host domain.
  • Added a POT file for translators.

1.0.0

  • Initial release.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].