WordPress.org

Ready to get started?Download WordPress

Forums

Lightbox Plus Colorbox
Request - disable for mobile devices (5 posts)

  1. muttznutz
    Member
    Posted 9 months ago #

    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/

  2. Jeff Sterup
    Member
    Posted 8 months ago #

    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?

  3. muttznutz
    Member
    Posted 8 months ago #

    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.

  4. Jeff Sterup
    Member
    Posted 8 months ago #

    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.

  5. muttznutz
    Member
    Posted 1 month ago #

    (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.

Reply

You must log in to post.

About this Plugin

About this Topic