![Check out Enfold](https://kriesi.at/wp-content/themes/kriesi/images/banner-enfold.jpg)
Tagged: Lightbox, Magnific popup, popup
-
AuthorPosts
-
March 17, 2023 at 1:39 pm #1401523
Hi,
i was implementing several popups on my website using Magnific-Popup and stumbled on a problem.
I used following code for the functions.php:function inline_popup_enabler(){ ?> <script> (function($){ $(window).load(function() { $('.inline_popup').magnificPopup({ type:'inline', midClick: true, disableOn: 100, }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'inline_popup_enabler');
The referring content to open the popups uses this tag:
<a class="inline_popup"a href="#infox">
All Popups get the CSS-class “mfp-hide”.
So far so good – everything works as it should and the Popups open as planned.
But when they open, behind every content, I put into the Popup is a link, so when I press on the content, it opens a specific Popup, and I don’t know, where this link comes from.It would be great if anyone has an idea how to solve this problem.
Thanks a lot!
Manuel-
This topic was modified 1 year, 5 months ago by
mharms1.
March 18, 2023 at 5:20 am #1401557$(window).load(function() {
is outdated since jQuery 3function inline_popup_enabler(){ ?> <script> (function($){ $(window).on('load', function(){ $('.inline_popup').magnificPopup({ type:'inline', midClick: true, disableOn: 100, }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'inline_popup_enabler');
March 18, 2023 at 12:11 pm #1401579March 30, 2023 at 9:43 am #1402994Thanks for helping!
In fact it doesn’t change anything with the problem I encounter.
Do you have any other possible solution for it.Best regards,
ManuelMarch 30, 2023 at 3:59 pm #1403024is there a page we can see the issue?
March 30, 2023 at 6:28 pm #1403035Is there a possibility to share the page, when it’s still in maintenance mode? Because I don’t want to put the website go live right now.
March 30, 2023 at 10:54 pm #1403047Well – then you had to wait for a mod to solve the problem – but occasionally other participants are good experts in special fields. e.g. what concerns the MagnificPopup Script. ;)
March 31, 2023 at 4:28 am #1403070Hi,
We may need to inspect the site in order to check the issue further. Please create a test page and provide the site details in the private field, screenshots will also help.
Best regards,
IsmaelMarch 31, 2023 at 9:51 am #1403102This reply has been marked as private.April 1, 2023 at 9:17 pm #1403248Hi,
Thanks for the screenshots please include a link to your page so we can examine, an admin login in the Private Content area may also be helpful.Best regards,
MikeApril 3, 2023 at 8:53 am #1403363Hello,
thanks for helping!
See the private content for the Credentials.
The site with the problem ist “Über uns”-
This reply was modified 1 year, 5 months ago by
mharms1.
April 5, 2023 at 12:10 am #1403558Hi,
Thanks for your patience and the link to your site, I found the issue was that you had unclosed popup trigger links, I closed them for you and the issue is now solved. Please clear your browser cache and check.Best regards,
MikeApril 5, 2023 at 9:27 am #1403580It works just perfect!
Thanks a lot for all your help!Best regards,
ManuelApril 5, 2023 at 11:22 am #1403592Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
This topic was modified 1 year, 5 months ago by
-
AuthorPosts
- The topic ‘Problem with Magnific-Popup – Popup links to another popup’ is closed to new replies.