multiple easy fancybox on the same page

Your Account / Forums / Easy FancyBox Pro / multiple easy fancybox on the same page

  • Author
    • July 1, 2016 at 10:07 pm #6740


      Im trying to use fancy box pop up multiple times on the same page once with contact form 7 and second just on some photos , but no matter how much I’ve tried i simply don’t know how to give them a proper class or id in order to style them in a different manner, the settings i have added to CF7 also take place on my photo and apparently i have no idea what I’m doing.

      Please help :)))

      My site :



    • July 1, 2016 at 10:07 pm #6741

      Forgot to mention that I’m trying to work on css hero and Beaver Builder if it makes a difference!

    • July 1, 2016 at 10:07 pm #6742

      Hi Alina, welcome on these forums and thank you for your purchase!

      As I understand it, you wish to style the light box differently for different use cases? Appart from difference in sizes and title area, this might be difficult to do. The actual source code that will serve for all light box instances is created at page load and all style rules (like colors etc) applied to it, will apply for each instance.

      Looking at your site, I see the “Customer review” link that opens up the CF7 form. Where can I find the photo link?

    • July 1, 2016 at 10:07 pm #6743

      Thank you!

      Sorry i was keep on playing around and removed it, but now is back on the page above the customer review left side top of the page.

      I was just trying to zoom the photo like in this example : screenshot 1 .

      Looking forward for your reply!


    • July 1, 2016 at 10:07 pm #6744

      I also have tried to add the nolightbox class in order to skip the photo opening through fancy box but that didn’t worked either.

    • July 1, 2016 at 10:07 pm #6745

      I see what you mean… Do you wish that photos open in a light box too or do you prefer they are not opened in a light box at all? If the latter, then you could try switching OFF the option Images on the Settings > Media admin page.

      Otherwise, there is no way to prevent the style rules you added to apply to all light boxes instead of only the Inline contact form one… The only difference between an image and the inline form inside the light box is this:

      <div id="fancybox-content">
        <img ... />


      <div id="fancybox-content">
        <div style="...">
          <div id="contact_form_pop" ... /div>

      Note how the inline content div (with ID contact_form_pop) is wrapped in a anonymous div. This means that if you want a specific background color for that inline content, you could apply it with #fancybox-content div { background-color:... } for example. Or if you want to pass any of the light box script options from you could use the Metadata method but otherwise, not much else.

      Positioning the light box differently, for example, will apply to all other media too. In that case, you are obliged to add another light box (must be a different one than FancyBox otherwise the same problem occurs) to open up the contact form.

    • July 1, 2016 at 10:07 pm #6746

      I would have preferred to open everything in a fancy box pop up including the photos, anyway thx so much for your reply i have never thought to switch off images option from settings :)) so i will be using the fancy box pop up only for testimonials and a different plugin for photo enlarge.

      PS i like the plugin!


    • July 1, 2016 at 10:07 pm #6747

      You could still open up everything with FancyBox but then you’d have to remove the custom style rules. Then only use rules like #fancybox-content div { background-color:... } for customizing the contact form inside the light box.

      Downside is of course that that is a lot less flexible. The advantage is that you do not need to make the site heavier with a second light box script.

      Hope these considerations help 🙂


  • You must be logged in to reply to this topic.