Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iframe pulling other links from my website, not just the gravity form - lead pages #41

Closed
jmu289 opened this issue Nov 1, 2016 · 2 comments

Comments

@jmu289
Copy link

jmu289 commented Nov 1, 2016

Hi,

I'm having a weird issues that i've been asking gravity forms and leadpages about and they can't figure it out.

I'm trying to add a gravity form to a leadpage. According to leadpages, this is doable:
https://support.leadpages.net/hc/en-us/articles/203521930-Can-I-Insert-A-Survey-Gravity-Forms-Or-Other-Into-A-Leadpages-Page-

But, when I paste IFrame into lead pages it shows the gravity form AND the header menu links of my website

See for example, these two test leadpages:

Notice how underneath the gravity form there is some hyperlinks for "home", "about us", etc... these are all the links from my top menu bar on my website (see associatepi.com)

The gravity form is SUPPOSED to look like it does on this page http://associatepi.com/cpcu-and-api-practice-exam-downloads/

When I reached out to lead pages they said:
"It looks like you currently have iFrame code for the full URL you provided. Because it's for the full site, that iFrame code includes the additional links like "Home", "About Us", ect. that are being pulled from the page and onto your form in Leadpages. You'll either need an iFrame code of just the form or to host the form on a plain website without those links and get the iFrame code for that."

Do you know how I can get an "iFrame code of just the form" per leadpages suggestion?

Or have you seen this issue before and do you have any suggestions on how to fix this?

Thanks!

This is the IFrame i'm using:
iframe src='//associatepi.com/gfembed/?f=1' width='100%' height='500' frameBorder='0' class='gfiframe'

@bradyvercher
Copy link
Member

It looks like that's due to your theme printing a responsive menu in the wp_footer action.

The template for displaying Gravity Forms in an iframe has to use wp_footer() to output all the scripts and styles needed to make a form work, but that may also include scripts, styles, and other output from the theme or other plugins that hook into wp_footer.

Your best bet is to manually remove any actions adding extra output in the iframe template.

@jmu289
Copy link
Author

jmu289 commented Nov 1, 2016

Got it, thank you for the quick help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants