-
AuthorPosts
-
March 13, 2016 at 11:30 pm #597444
Hi,
Could you please help me to understand why Magnific Popup v1.1.0 by Dmitry Semenov doesn’t work with Enfold.
I can see that you use this library in this theme but I cannot force it to work as a ajax type of popup.
Example:<a href="/path-to/file.html">Popup</a> <script type="text/javascript"> $(document).ready(function() { $('.white-popup').magnificPopup({ type: 'ajax', alignTop: true, overflowY: 'scroll' }); }); </script>
Thank you.
Have a good day.- This topic was modified 8 years, 9 months ago by jewsforjesus.
March 15, 2016 at 8:00 am #598219Hey jewsforjesus,
I’m not sure, could you provide us with a link to the site in question so that we can take a closer look please?
Thanks,
RikardMarch 16, 2016 at 11:26 am #598870Hi,
Thank you.
I created a password protected post for you.March 16, 2016 at 8:34 pm #599189Hi!
Please add following code to Functions.php file in Appearance > Editor
function avia_custom_magnific(){ ?> <script type="text/javascript"> jQuery(document).ready(function() { jQuery('.white-popup').magnificPopup({ type: 'ajax', alignTop: true, overflowY: 'scroll' }); }); </script> <?php } add_action('wp_footer', 'avia_custom_magnific');
Cheers!
YigitMarch 17, 2016 at 1:17 am #599315Thank you but it doesn’t work :-(
I can see strange strings such as:function avia_custom_magnific(){ ?> <script type="text/javascript">
and
<?php } add_action('wp_footer', 'avia_custom_magnific');
Is this correct?
Where should I put this code? At the end of the file or there is a special place inside of it?Thank you.
- This reply was modified 8 years, 9 months ago by jewsforjesus.
March 18, 2016 at 12:24 pm #600246Hi!
You have to add that code at the very bottom of the functions.php file. Make sure that you copy it from the forum, not from your email.
Note that path to the file that will be loaded should have the same origin (e.g. be on the same domain), learn more.
Cheers!
IsmaelMarch 18, 2016 at 2:16 pm #600293Hi,
Thank you for your time but I cannot force it to run!
Here you are what has been done:
In the post:<a href="/torah-comments/ajax.html">Popup</a>
functions.php:function avia_custom_magnific(){ ?> <script type="text/javascript"> jQuery(document).ready(function() { jQuery('.white-popup').magnificPopup({ type: 'ajax', alignTop: true, overflowY: 'scroll' }); }); </script> <?php } add_action('wp_footer', 'avia_custom_magnific');
What am I doing wrong? When I click on the link it opens a new page not a popup.
Thank you.- This reply was modified 8 years, 9 months ago by jewsforjesus.
March 21, 2016 at 1:13 pm #601195Hi,
Could you please give me your advice how to fix this issue?
Thank you.
Best regards.March 21, 2016 at 4:19 pm #601310Hi!
Do you mind creating a temporary admin login and posting it here privately?
Cheers!
YigitMarch 21, 2016 at 9:27 pm #601511Hi,
I created a password protected post for you.
Best regards.March 22, 2016 at 4:22 pm #601953Hi!
Thanks but we are going to need a temporary admin login to look further into the issue.
Best regards,
YigitMarch 22, 2016 at 10:16 pm #602168Hi,
You can find login info in the private area.
Best regards.March 26, 2016 at 3:50 am #603763Hi!
Thank you for the info. You forgot to add the class attribute (white-popup) in the link tag. We created a test page here. http://cis.jewsforjesus.org/test/
Best regards,
IsmaelMarch 31, 2016 at 11:47 am #605804Thank you, Ismael.
Have a good day :-)March 31, 2016 at 3:09 pm #605938 -
AuthorPosts
- You must be logged in to reply to this topic.