• I have installed Easy Fancybox and put a contact form short code in. For some reason, when you click the link to make the Fancybox pop up, it reloads the page first, and adds an extension to the URL (#contact_form_pop). Once the page has reloaded, then you can click the link and the box pops up. This is the code I’ve put into a widget

    Contact Us
    <div style=”display:none” class=”fancybox-hidden”>
    <div id=”contact_form_pop”>
            [contact_form]</div>
    </div>

    I’m of course hoping that you can just click the link and the box will appear.

    Thanks in advance

    https://ww.wp.xz.cn/plugins/easy-fancybox/

Viewing 5 replies - 1 through 5 (of 5 total)
  • This is not normal behaviour. Can you share a link to the page with that contact form?

    Thread Starter brodie16

    (@brodie16)

    Here is the link to the page. You’ll just need to click on the stand alone “contact us” on the sidebar to see what I mean.

    https://www.featuresheetfactory.com/f-a-q/

    Thanks for your help

    From my end (Google Chrome browser) the link is working fine the first time. And I see no script errors in console.

    Did you test when logged out? It might be that when logged in, the page loads slower than normal and Fancybox may not have bound yet before you clicked the link…

    One tip: use class=”fancybox-inline” for inline content. Using class=”fancybox” works too but seperating images and inline content gets you greater control over the settings.

    Thread Starter brodie16

    (@brodie16)

    Still happening for me in Chrome, Firefox, and Safari. Tried it out on a variety of machines and got the same thing. It opens up a new tab before it works. Did a test by putting the code on its own page with nothing else, and it works perfectly. Seems to be a conflict with the Visual Composer of the theme. If I place above any of the Visual Composer elements it works fine, if its below, or on a sidebar it doesn’t. Definitely a conflict of some kind.

    Thanks for your help.

    OK, so this visual composer thing… I see some script file and stylesheet (why would it be there when not logged in?) but I suppose it is only active when you are logged in as admin.

    Try logging out or visiting your site in a anonymous/incognito browser window.

    Otherwise, I have no explanation for the difference between what you see and what I see…

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Contact Form Pop’ is closed to new replies.