• Resolved AndyiBM

    (@andyibm)


    Hi,

    Really enjoying the plugin ??

    One question… is it possible to disable (with jQuery/other) the pop-up click action on small (mobile) devices? These devices already display the images at full screen size, so the pop-up seems an unnecessary step. I can’t see this as an option in the settings. Currently using the Fancybox pop-up gallery.

    Many thanks,

    Andy

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nK

    (@nko)

    Hi Andy.

    I think, the easiest solution is to disable pointer events using CSS:

    @media (max-width: 768px) {
        .vp-portfolio__item {
            pointer-events: none;
        }
    }
    

    Regards, nK.

    Thread Starter AndyiBM

    (@andyibm)

    Ah – superb. I also needed to differentiate between pages where the portfolio layout’s ‘content source’ was ‘post-based’ (which I still wanted clickable) and those where the ‘content source’ was ‘images’ (which I needed to disable), but I’ve found the appropriate classes and it’s all good.

    Many thanks nK!

    • This reply was modified 4 years, 7 months ago by AndyiBM.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable popup click action on small screens’ is closed to new replies.