• Resolved ckourounis

    (@ckourounis)


    The popup works correctly on desktop but is not popping up on mobile. I have majority of the buttons on the website popping up the sign in form. The Enter Healthcare Professional Website works as well.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi, I don’t see any errors but it seems the issue happens on any touch device (not just mobile) so I suspect it is related to another script that is touch-aware. Try removing the flexslider for a moment. Or set up a test page without the slider, if possible without any of the slider script files included…

    Thread Starter ckourounis

    (@ckourounis)

    Hi Ravan,

    I tried on all pages, even the ones that don’t have the flexslider. I do notice that sometimes if I click on the edge of the button, it will popup. But the issue is still there.

    Here is a page without the slider. http://better-skin.ca/contact-us/

    • This reply was modified 6 years, 2 months ago by ckourounis.
    • This reply was modified 6 years, 2 months ago by ckourounis.

    Whether the slider is there on the page or not, the same script files are included by the theme. Not even sure it is the slider or something else in the theme scripts. In five of them I see touch-related script but I cannot tell what might be causing the actual conflict. Sorry.

    One tip I can give: try to get rid if the blank lines before the DOCTYPE declaration line in (usually) your theme’s header.php file. In the site source (Ctrl+u) there are 6 blank lines at the top which should not be there. Try to find out where they come from and remove them. It might explain weird behavior and cross-browser differences.

    Thread Starter ckourounis

    (@ckourounis)

    I remember using this plugin 3 years ago and the same issue happened. I tested all of the buttons just now and if I click the very right edge of all links, the popup works. For some reason when I add the fancybox-inline class, the entire button doesn’t work.

    Also, can i have more then 1 tag linking/opening the same #fancyboxID-1?

    • This reply was modified 6 years, 2 months ago by ckourounis.

    Yes, you can have as many links to the same inline ID as you wish. It should not have any impact.

    Could you test this: create a button link that points to an image. Then remove the fancybox-inline class and make sure the Image media type is activated on Settings > Media.

    I wonder if it’s related to the “inline” class…

    Thread Starter ckourounis

    (@ckourounis)

    Do you mean something like this:

    
    <a href="#fancyboxID-1">Click Me!</a>
    
    <img src="http://better-skin.ca/wp-content/uploads/2018/01/jerry-tan.jpg" />
    
    • This reply was modified 6 years, 2 months ago by ckourounis.

    No, like:

    
    <a href="http://better-skin.ca/wp-content/uploads/2018/01/jerry-tan.jpg" class="opt-in-button">Click Me!</a>
    
    Thread Starter ckourounis

    (@ckourounis)

    Yes the popup works and the image shows. But I tested the button connected to the inline code and it still doesn’t popup.

    • This reply was modified 6 years, 2 months ago by ckourounis.

    That would mean it’s related to the inline class but I don’t see any conflicting rules in your style sheets… Really strange.

    Thread Starter ckourounis

    (@ckourounis)

    Hi Ravan,

    I figured out what the issue was. We had this exact issue and conversation 1 year and 3 months ago on a different website hehehehe. I knew this was such a familiar issue!

    https://wordpress.org/support/topic/ios-mobile-buttons-wont-open-popup/#post-8314964

    The issue is with the X Theme / X Pro Theme. This code fixed the issue.

    
    jQuery( function($) {
    $(window).load( function() {
    $('.x-btn').off('touchend touchstart');
    } );
    } );
    
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Mobile Popup Is Not Displaying’ is closed to new replies.