• Resolved tonvandervalk66

    (@tonvandervalk66)


    Hi, great plugin, works smoothly on the laptop.

    However when an alligator popup window opens on mobile, I would just like it to open a new screen the normal way.

    https://www.flickr.com/gp/125181960@N08/2Ph59a
    This is not what I want on mobile.

    Do you have any suggestions for adapting the css of class mpopup?

    Thanks a lot!

Viewing 1 replies (of 1 total)
  • Plugin Author cubecolour

    (@numeeja)

    This is not supported. I have looked into this previously but the main problem with attempting to do this is that there is no reliable way to detect that the page is being viewed on a mobile device. User agent sniffing will miss devices. Checking whether touch events are supported to identify mobile devices will return positive for touch-enabled PCs, and checking the browser width can give inaccurate identification of a mobile device.

    My best suggestion would be to add a function using one of the ideas at http://stackoverflow.com/questions/3514784/what-is-the-best-way-to-detect-a-mobile-device-in-jquery, to select elements with the ‘mpopup’ class and remove that class when a mobile device is indicated.

    • This reply was modified 7 years ago by cubecolour.
    • This reply was modified 7 years ago by cubecolour.
    • This reply was modified 7 years ago by cubecolour.
Viewing 1 replies (of 1 total)
  • The topic ‘How not to Popup on mobile?’ is closed to new replies.