Support » Plugin: WP Matterport Shortcode » Mobile View Light Box Not Working

  • The light box used to work across all devices, but it is no longer working for mobile view. Mobile view is where the light box is most needed. Got a fix?

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

Viewing 1 replies (of 1 total)
  • Plugin Author Chris Hickman

    (@antiochinteractive)

    @fullpreview – It’s disabled intentionally on mobile and opens in a new tab. I found that on mobile, the lightbox was problematic as it ate up unneeded screen space.

    I’m not sure if you’re handy with editing of code, but if you were to edit the ‘wp-matterport.js’ file, you can remove the ‘disableOn’ section entirely.

    jQuery(document).ready(function($) {
    $(‘.wpm-title a.wpm-overlay, .wpm-img a.wpm-overlay’).magnificPopup({
    type:’iframe’,
    disableOn: function() {
    if($(window).width() < 600) {
    return false;
    }
    return true;
    }
    });
    });

Viewing 1 replies (of 1 total)
  • The topic ‘Mobile View Light Box Not Working’ is closed to new replies.