magnific popup size

1 reply · opened Apr 15, 2019

Cchristophedefaye1968Apr 15, 2019

Hello,
I would like to custom the size of the pop-up (Lightbox) for different pages.
Is there any possibility to specify different size of the pop-up for different page ?

I understand that I can change the css mfp-iframe-holder .mfp-content { max-width: 900px; }
But I would like to set different size.
Something like <a href="https://www..."></a> ?

Thank you,
Best regards,
Christophe

SSemicolon WebSTAFFApr 15, 2019

Hello,

Unfortunately not, the plugin only allows 1 size of the Lightbox on a Single Page. However, you can consider using the API for the Magnific Lightbox Plugin: https://dimsemenov.com/plugins/magnific-popup/documentation.html#api to add a Class to the .mfp-content Container based on the Triggered Lightbox Item and then add the CSS Size properties to the Class accordingly.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard