WordPress.org

Support

Support » Plugins and Hacks » Request – disable for mobile devices

Request – disable for mobile devices

  • Hi Dan,

    First of all, thanks for your work developing this plugin. I’m implementing it on a number of my sites.

    However, I’d like to use another plugin for mobile sites (for info : I’m using PhotoSwipe).
    For this to work properly, I need to disable the LB+CB scripts, and I’ve done this using WP’s wp_is_mobile() function.

    I’ve implemented this by adding a test for wp_is_mobile() in your lbpFinal() function, from just before the add_action( wp_enqueue_scripts ... to just after the add_action( $lightboxPlusOptions ...

    Of course, this isn’t upgrade safe, so I’d like a checkbox in the plugin options to allow the test to be switchable.

    Sorry, I can’t offer you an iPad for testing, but you can emulate one through user agent switching

    Thanks again,
    Drew

    http://wordpress.org/plugins/lightbox-plus/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Jeff Sterup
    Participant

    @foomagoo

    You can use plugin organizer to achieve your goal. http://wordpress.org/extend/plugins/plugin-organizer/. I’m working on getting the colorbox plugin working with text and I saw your request. Any idea how to get text as the content of the lightbox rather than an image with this plugin?

    muttznutz
    Member

    @muttznutz

    Thanks, Jeff, that looks like a handy tool you’ve got there. I’ll try it out.
    In terms of working with text, sorry, but it’s not something I’ve tried.

    Jeff Sterup
    Participant

    @foomagoo

    I figured it out. Just needed to use the inline color box and everything works perfectly. This is an excellent lightbox plugin. Will be getting five stars from me.

    muttznutz
    Member

    @muttznutz

    (message mainly for Jeff, but also for the record),
    Sorry about the slow response, but I’ve just setup your plugin-organiser properly (prompted by the latest LB+CB plugin update).
    Everything seems to work fine now (once I understood the user agent bit), and I’m really happy with this combination going forward.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Request – disable for mobile devices’ is closed to new replies.