Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1345814

    I’m happy with enfold website in past days. but recently after yesterday updating. my popup window disappear.
    when visitor click the “Ask A Quote” button. there’s a cf7 contact form coming on a modal window before.
    but now it just go to the top when click. you can check the code:

    <h3>Ask A Quote</h3>
    
    <div id=”test-popup” class=”white-popup mfp-hide”>
    [contact-form-7 id=”7887″ title=”Contact form 1″]
    </div>

    and the PHP function code has be done before:

    function popup_inline() { ?>
      <script>
        jQuery(window).on('load', function(){
          jQuery('.open-popup-link').magnificPopup({
            type:'inline',
            midClick: true // Allow opening popup on middle mouse click. Always set it to true if you don’t provide alternative source in href.
          });
        });
      </script>
    <?php }
    
    add_action('wp_head', 'popup_inline');

    .

    now the function is not working. could you please help me with this?
    the login link under private content. thanks

    #1345857

    Hey keir2012,

    Thank you for the inquiry.

    Did you set jQuery to load in the footer? In the code above, please look for this line..

    add_action('wp_head', 'popup_inline');
    

    .. and try to replace it with.

    add_action('wp_footer', 'popup_inline', 999);
    

    And if possible, please update the theme to version 4.9.1 to avoid issues with the product pages.

    Best regards,
    Ismael

    #1345871

    Dear Ismael. works correctly now.Thank you for your great help. have a nice day:)

    #1345910

    Hi,

    Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.