Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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, 1 month ago by mharms1.
    #1401557

    $(window).load(function() { is outdated since jQuery 3

    function 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');
    #1401579

    Hi,

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

    #1402994

    Thanks 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,
    Manuel

    #1403024

    is there a page we can see the issue?

    #1403035

    Is 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.

    #1403047

    Well – 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. ;)

    #1403070

    Hi,

    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,
    Ismael

    #1403102
    This reply has been marked as private.
    #1403248

    Hi,
    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,
    Mike

    #1403363

    Hello,

    thanks for helping!

    See the private content for the Credentials.
    The site with the problem ist “Über uns”

    • This reply was modified 1 year ago by mharms1.
    #1403558

    Hi,
    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,
    Mike

    #1403580

    It works just perfect!
    Thanks a lot for all your help!

    Best regards,
    Manuel

    #1403592

    Hi,
    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

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Problem with Magnific-Popup – Popup links to another popup’ is closed to new replies.