-
AuthorPosts
-
November 30, 2022 at 11:43 am #1374419
Hi,
I would like to create simple pop-up with Enfold theme but I couldn’t find any element that works like it?
Does Enfold support creation of simple pop-ups like below?
If not is there some plugin which is recommended to be used?
Thanks
December 1, 2022 at 5:50 am #1374560Hey Jaro,
Thank you for the inquiry.
You can use the default lighbox to open inline or iframe contents. Please check the threads below for examples.
// https://kriesi.at/support/topic/pop-up-modal-window-disappear-after-updating/#post-1290695
// https://kriesi.at/support/topic/using-magnific-popup-modal-make-page-scrolls-up/#post-1331371
// https://kriesi.at/support/topic/avia-pop-up-magnific-pop-up-on-mobile-pops-up-below-the-fold/#post-1326451
// https://kriesi.at/support/topic/form-in-popup-on-mobile/#post-1308520Best regards,
IsmaelDecember 1, 2022 at 12:58 pm #1374608Thanks Ismael,
This seems to be complicated for my coding knowledge :( Is this maybe documented somewhere better? Or possible to be done somehow over UI/Aria?Thanks
JaroDecember 1, 2022 at 3:16 pm #1374650place on your page – where the popup should do what popup do ;) – a container ( 1/1 ) – fill with your content.
Goto Advanced Tab of that container and give the custom ID to it: myPopup
fill in the custom class: white-popup mfp-hide
so there will be two classes now on this container.now place on your child-theme functions.php :
function open_popup_on_load(){ ?> <script> window.addEventListener("DOMContentLoaded", function () { (function($) { setTimeout(function() { if ($('#myPopup').length) { $.magnificPopup.open({ items: { src: '#myPopup' }, type: 'inline' }); } }, 1000); })(jQuery); }); </script> <?php } add_action('wp_footer', 'open_popup_on_load', 999);
change the value 1000 (ms) to whatever you like
see: https://enfold.webers-webdesign.de/selfopen-popup/December 1, 2022 at 4:35 pm #1374669December 1, 2022 at 4:35 pm #1374670Thanks for detailed instructions Guenni,
It worked perfectly. I will do some fun with it :)Much appreciated.Feel free to close this one.
JaroDecember 2, 2022 at 7:40 am #1374723Hi,
Great! Glad to know that the modification is working. Thanks to @Guenni007. Please feel free to open another thread if you have more questions about the theme.
Have a nice day.
Best regards,
Ismael -
AuthorPosts
- The topic ‘Create simple popup with Enfold’ is closed to new replies.