Support » Plugin: Easy FancyBox » Pop up in FancyBox on page load

  • Resolved gonzalogg

    (@gonzalogg)


    Hi, i’m trying to load a form on page load.

    Here is the code i’m using:

    <a href="#contact_form_pop" class="fancybox-inline">More info</a>
    <div style="display:none" class="fancybox-hidden">
    <div id="fancybox-auto">
            [contact-form-7 id="181" title="ContactForm"]</div>
    </div>

    The link More info functions perfectly, but introducing the id=”fancybox-auto” not make any changes.

    I’m sure i’m doing wrong the code. (I’m using WordPress and Contact Form 7).

    ¿Can you help me?

    https://wordpress.org/plugins/easy-fancybox/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, id="fancybox-auto" belongs on the link tag, not the content. So do:

    <a id="fancybox-auto" href="#contact_form_pop" class="fancybox-inline">More info</a>
    <div style="display:none" class="fancybox-hidden">
    <div id="contact_form_pop" style="width:400px">
            [contact-form-7 id="181" title="ContactForm"]</div>
    </div>

    Thread Starter gonzalogg

    (@gonzalogg)

    Thanks!! Now it’s ok!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pop up in FancyBox on page load’ is closed to new replies.