WordPress.org

Ready to get started?Download WordPress

Forums

Alligator Popup
[resolved] Mobile Device conflict with pretty photo (7 posts)

  1. M C
    Member
    Posted 6 months ago #

    Great plugin!

    I am having one small issue, though. I am using the justified image grid plugin and there is a slight conflict with the alligator popup on a mobile device. When I open an image on a mobile device, the lightbox opens up into an extremely small window....basically making my website mobile gallery browsing useless. I have tried adjusting the settings with the justified image grid, but had no luck.

    Is there anything I can adjust or modify with the alligator plugin to resolve this?

    Thank you

    https://wordpress.org/plugins/alligator-popup/

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Plugin Author

    Posted 6 months ago #

    This plugin doesn't use a lightbox and on the few mobile devices I've tested it on it opens the target page in a new browser tab rather than the popup you get on a desktop.

    I'll take a look at your site if you post a link to the page affected.

    Which mobile device(s) do you see this with?

  3. cubecolour
    ɹoʇɐɹǝpoɯ
    Plugin Author

    Posted 6 months ago #

    I've just looked for featured image grid and seen that you're probably referring to the lightbox in that. As it is a commercial plugin I have no access to do any testing with it.

  4. M C
    Member
    Posted 6 months ago #

    Thank you for the quick feedback.

    Everything with your plugin works fine. However, it is causing the lightbox to open up my images (ones that are using the justified image grid plugin) very small on a mobile device. I am using the iPhone 5 (same results using Safari or Chrome on the iPhone 5).

    Here is a link to the site: http://majahuapalms.com/819-2/

    Here is a link to the plugin: http://codecanyon.net/item/justified-image-grid-premium-wordpress-gallery/2594251

    Any possible way I can provide you with additional info or code from the other plugin?

    Thank you very much!

  5. cubecolour
    ɹoʇɐɹǝpoɯ
    Plugin Author

    Posted 6 months ago #

    I don't know whether the other plugin uses a class with the name 'popup' if so there might be a conflict with that - its a long shot, but you can try using a different class in alligator popup - change line 69 of alligator-popup.php to

    return '<a href="' . esc_attr($url) . '" class="alligatorpopup" data-width="' . esc_attr($width) . '" data-height="' . esc_attr($height) . '">' . $content . '</a>';
    }

    and line 3 of popup.js to

    $('.alligatorpopup').click(function() {

    Beyond that, I'm afraid wading through the code of a commercial plugin with 279 settings and 71 pages PDF documentation doesn't sound like a lot of fun and is a little outside the scope of the free support I can provide for my free plugin which only has 21 lines of javascript itself and three php functions.

  6. M C
    Member
    Posted 6 months ago #

    It worked!

    Thank you very much! I just sent you a donation.

    Man, I wish some of the pay plugins offered the support you have!

    M

  7. cubecolour
    ɹoʇɐɹǝpoɯ
    Plugin Author

    Posted 6 months ago #

    Thank you for the donation. I must admit I'm a little surprised that my guess was the answer, but I'm glad it worked out for you.

Reply

You must log in to post.

About this Plugin

About this Topic