PHPackages                             cedaro/gravity-forms-iframe - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cedaro/gravity-forms-iframe

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

cedaro/gravity-forms-iframe
===========================

Embed a Gravity Form on any site using an iframe.

v2.0.5(1y ago)1563.0k28[12 issues](https://github.com/cedaro/gravity-forms-iframe/issues)GPL-2.0+PHP

Since Jun 21Pushed 1y ago21 watchersCompare

[ Source](https://github.com/cedaro/gravity-forms-iframe)[ Packagist](https://packagist.org/packages/cedaro/gravity-forms-iframe)[ Docs](https://github.com/cedaro/gravity-forms-iframe)[ RSS](/packages/cedaro-gravity-forms-iframe/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (1)Versions (12)Used By (0)

Gravity Forms Iframe Add-on
===========================

[](#gravity-forms-iframe-add-on)

Embed a Gravity Form in an iframe on any site.

**Contributors:** [Brady Vercher](https://github.com/bradyvercher)
**License:** [GPL-2.0+](http://www.gnu.org/licenses/gpl-2.0.html)

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
--------

[](#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
--------

[](#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](https://camo.githubusercontent.com/7364e823b172a065420bd3052fbc721c7499497aadf6fe90c1dc81250a270a19/68747470733a2f2f7261772e6769746875622e636f6d2f6272616479766572636865722f677261766974792d666f726d732d696672616d652f6d61737465722f73637265656e73686f742d312e706e67)](https://camo.githubusercontent.com/7364e823b172a065420bd3052fbc721c7499497aadf6fe90c1dc81250a270a19/68747470733a2f2f7261772e6769746875622e636f6d2f6272616479766572636865722f677261766974792d666f726d732d696672616d652f6d61737465722f73637265656e73686f742d312e706e67)*The form's iframe settings panel.*

### Overrides for Individual Iframes

[](#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&amp;dt=0&amp;dd=0*

### Auto-resizing Script

[](#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 `` tag when copying the embed code. Leaving off the script tag will save an HTTP request.

### Confirmation Screen

[](#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
------------------

[](#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
------------

[](#installation)

### Upload

[](#upload)

1. Download the [latest release](https://github.com/bradyvercher/gravity-forms-iframe/archive/master.zip) 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

[](#manual)

1. Download the [latest release](https://github.com/bradyvercher/gravity-forms-iframe/archive/master.zip) 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](http://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).

### Git

[](#git)

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

`git clone git@github.com: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
---------

[](#changelog)

### 2.0.5

[](#205)

- Loaded the text domain on `init` rather than `plugins_loaded` to prevent notices in WordPress 6.7+.

### 2.0.4

[](#204)

- Required composer/installers 1.0 or 2.0 to prevent conflicts when installed with Composer.

### 2.0.3

[](#203)

- Declared a variable in the `Plugin` class to prevent dynamic proprety warnings in PHP 8.2+.
- Handled Gravity Forms config collections in the head section of the iframe template. This allows scripts to be "localized" and prevents JavaScript errors.

### 2.0.2

[](#202)

- Updated embed code field in the admin panel to work with Gravity Forms 2.5+.
- Passed an object instead of a string in the auto-resize message.
- Changed the method for hiding the admin bar to improve reliability.
- Added GitHub Update compatibility.

### 2.0.1

[](#201)

- Made GravityFormsIframe\_Addon::form\_settings\_fields() compatible with the parent class.

### 2.0.0

[](#200)

- Moved to the Cedaro GitHub account.
- Refactored the plugin structure.
- Introduced a 'gfiframe\_head' action in the template header.

### 1.0.3

[](#103)

- Defined 'gravityforms\_iframe' capability in the Add-on class to integrate with the Members plugin.

### 1.0.2

[](#102)

- 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

[](#101)

- 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

[](#100)

- Initial release.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 93.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~476 days

Recently: every ~764 days

Total

9

Last Release

540d ago

Major Versions

v1.0.3 → v2.0.02016-07-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e6e3b868bf75a4204de91fdc45d15b02a6874b6f88706d06cacfea1857fa0e5?d=identicon)[bradyvercher](/maintainers/bradyvercher)

---

Top Contributors

[![bradyvercher](https://avatars.githubusercontent.com/u/1302030?v=4)](https://github.com/bradyvercher "bradyvercher (41 commits)")[![hubdotcom](https://avatars.githubusercontent.com/u/5274747?v=4)](https://github.com/hubdotcom "hubdotcom (2 commits)")[![robneu](https://avatars.githubusercontent.com/u/2184093?v=4)](https://github.com/robneu "robneu (1 commits)")

---

Tags

gravity-formsiframewordpresswordpress-pluginwordpressiframegravity-forms

### Embed Badge

![Health badge](/badges/cedaro-gravity-forms-iframe/health.svg)

```
[![Health](https://phpackages.com/badges/cedaro-gravity-forms-iframe/health.svg)](https://phpackages.com/packages/cedaro-gravity-forms-iframe)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k441.8k2](/packages/roots-bedrock)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
