WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] only first form on page loads in popup (3 posts)

  1. bgt9752
    Member
    Posted 1 year ago #

    I want to have multiple forms on a single page that open in easy fancy box. I've added all the markup and unique cf7 ids, but they all open as the same form and not the unique ones. Whatever form is listed first on the page is the one that displays for all the others.

    I'm use the following markup (repeated per form id) and easy fancybox.

    Thoughts???

    <p class="contactformz">Dooby Du</p>
    <div style="display:none" class="fancybox-hidden">
    <div id="contact_form_pop">
    [contact-form-7 id="2118" title="I Have a Dooby Du Question"]
    </div>
    </div>

    http://wordpress.org/extend/plugins/contact-form-7/

  2. bgt9752
    Member
    Posted 1 year ago #

    Problem solved! I added numbers to the "#contact_form_pop1", "#contact_form_pop2", etc. Hope this helps someone else.

    <p class="contactformz">Dooby Du</p>
    <div style="display:none" class="fancybox-hidden">
    <div id="contact_form_pop1">
    [contact-form-7 id="1305" title="I Have a Dooby Du Question"]
    </div>
    </div>

  3. bgt9752
    Member
    Posted 1 year ago #

    ...make sure you change the contact form 7 shortcode/id/title each time too.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic