Contact Form 7
put a form into an iframe (2 posts)

  1. angdoo
    Posted 1 year ago #

    First i would like to say that I'm a complete newbie to wordpress, coding world.. so excuse me for lack of knowledge. But I'm trying very hard to build a site! :)
    I have a question which could be simple for the experts, but I just can't seem to find the solution.

    What I'm trying to do:
    I'm trying to put a form (created by Contact Form 7) into an iframe.
    I only have the shortcode of the form and I don't know how to execute this shortcode inside '<iframe src=""></iframe>'

    Reason for needing to do this:
    I'm trying to open the form in a lightbox (using lightbox plus colorbox). If the form is not in an iframe, the modal closes automatically when the 'submit' button is clicked. To prevent the modal from closing, I read a suggestion online to put the form inside an iframe. And this is where I run into a problem.

    I hope someone can help me out here. Also please consider that I'm a total beginner, so an easy explanation would be very very helpful.
    Thank you in advance for helping out!!


  2. ederangelo
    Posted 11 months ago #

    i want to do it too, some can help ?

    hellow enginiers of Contact 7.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic