Tagged: Modal popup
Hello to the team!
I would like to open an interactive PDF File and some html content in a modal popup from a button but I couldn´t find a solution.
Could you maybe help me with this?
As I have read in the support forum, there are many clients who would like to have this as an option in the theme.
Others already offer that in their themes even with animations e.g. http://themes.damojothemes.com/?theme=miami_wp
Is there any “hope” for us too in the near future?
Best regards
Asterios Georgiou
Hey koelnermusikakademie!
When you create your button or link add a “?iframe=true” to the end of it like so.
<a href = "http://www.yoursite.com/sample.pdf?iframe=true">Click me</a>
That should load the PDF into a popup when clicked on.
Best regards,
Elliott
Hello Elliot,
thanks for the reply.
The popup works but there is no content visible. Any ideas?
Best Regards
Asterios Georgiou
Site: http://test.koelner-musikakademie.de/anmeldung-und-gebuhren
(Check the “Anmeldung” button)
Hey!
It’s loading fine on my end. What browser are you using?
Try clearing your browser cache and view again.
Cheers!
Elliott
You are right, it does work.
It was the cache…
One more question:
Would it be possible to change the size of the popup window, e.g. make it bigger?
Thank you for your support and help.
Asterios Georgiou
Hi!
Add this to a codeblock element in the page.
<style type = "text/css">
.mfp-iframe-holder .mfp-content { max-width: 1200px !important; }
</style>
Cheers!
Elliott
Now it is fine, thank you and all the best!
Asterios Georgiou