Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #704213

    Hi

    I’ve tried to create a modal window with a contact form following this instrucctions https://kriesi.at/support/topic/lightbox-for-mailchimp-form/#post-582439

    The problem is that magnificPopup function is not declared anywhere.

    ¿There are an alternative method?

    #705230

    Any idea?

    #705273

    I’d solved this issue. Now the link doesn’t show the lightbox.

    I’ve make this:

    functions.php

    add_action('wp_footer', 'ava_custom_lightbox');
    function ava_custom_lightbox(){
    ?>
    <div id="test-popup" class="white-popup mfp-hide">CONTENT GOES HERE</div>
    <script type="text/javascript">
    (function($) {
    	$(window).load(function() {
    		$('.open-popup-link').magnificPopup({
    			type:'inline',
                midClick: true
    		});
    	});
    })(jQuery);
    </script>

    style.css

    .white-popup {
      position: relative;
      background: #FFF;
      padding: 20px;
      width: auto;
      max-width: 500px;
      margin: 20px auto;
    }

    Custom link at secondary menu
    `#test-popup’

    What’s wrong?

    #705945

    Hi,

    Can you post a link to your site? so we can inspect further. You can place it in private content when you reply so only moderators can see it.

    Best regards,
    Nikko

    #707676

    Sorry, it works. It was my fault

    #707679

    Hi,

    Glad you fixed it.

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Modal window’ is closed to new replies.