Disable lightbox on mobile devices

To disable lightbox on mobile devices, please add this code to Custom JS field in Content Views >> Settings page:

/* Disable lightbox on mobile devices */
var cvp_lightbox_disable_on_mobile=function(){if(PT_CV_PUBLIC.is_mobile){var i="pt-cv-lightbox";$("."+i).removeClass(i).attr("target","_self")}};cvp_lightbox_disable_on_mobile(),$("body").on("pt-cv-pagination-finished",function(){cvp_lightbox_disable_on_mobile()});

Best regards,