Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19483
    louisa
    Participant

    Hi,

    Is it possible to have the lightbox enabled on desktop and tablet, but not mobile? (or on desktop, but not tablet and mobile)

    Thanks,
    Louisa

    #20025
    Bartosz
    Keymaster

    Yes, but would require some custom coding.

    WordPress allow for mobile detection using wp_is_mobile() function. If you combine it with a rl_lightbox_args filter hook (some examples on our support forum) you’ll be able to disable / enable lightbox on mobile / desktop.

    To have some more granular control you’d need to use a Mobile Detect PHP class http://mobiledetect.net/ or something similar.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.