• Resolved Osmel

    (@osmelpv)


    Hi, I′m trying to use the lightbox effect in a Gallery and it does not work. Any help?
    URL: https://www.casamayrahabana.com/en/photo-gallery/

    WP: Version: 5.2.3
    Theme: Generate Press 2.3.2 (Premium addon)
    Active plugin
    Active Plugins ==
    Classic Editor version: 1.5

    Contact Form 7 Version: 5.1.4

    Elementor Version: 2.7.3

    GP Premium Version: 1.8.3

    Honeypot for Contact Form 7 Version: 1.14.1

    Limit Login Attempts Reloaded Version: 2.9.0

    LiteSpeed Cache Version: 2.9.8.6

    Polylang Version: 2.6.4

    Yoast SEO Version: 12.1

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Osmel

    (@osmelpv)

    I witch to the default Twenty Seventeen WP theme and lightbox work. Is there any reported conflict between GP (Premium) and Elementor Gallery Lightbox?

    Leo

    (@leohsiang)

    Hi there,

    I see a console error on that page:
    https://www.screencast.com/t/ucm0HuU6

    GP doesn’t use jQeury so it shouldn’t be the issue.

    What if you disable all plugins except Elementor?

    Let me know ??

    Thread Starter Osmel

    (@osmelpv)

    Could a function like this cause the conflict since it use JQuery?
    I′m using a function like this one in child theme.

    function calendar_js(){
      ?>
     <script>
    jQuery(function ($) {
     var now = new Date(); 
     var day = ("0" + now.getDate()).slice(-2);
     var month = ("0" + (now.getMonth() + 1)).slice(-2);
     var today = now.getFullYear()+"-"+(month)+"-"+(day);
    $('#datePicker').val(today);
    $("#datePicker").attr("min", today); 
     
    $('#datePicker2').val(today); 
    $("#datePicker2").attr("min", today); 
     
     // Cada vez que se cambie el datepicker1 se ejecuta este código para poder seleccionar rangos de fecha
    document.getElementById("datePicker").onchange = function() {
     
     var fecha = $('#datePicker').val();
     
     $('#datePicker2').val(fecha);
     $("#datePicker2").attr("min", fecha);
    }; 
     
    }); 
     </script>
     <?php
     }
     add_action('wp_footer', 'calendar_js');
    Theme Author Tom

    (@edge22)

    It definitely could. If you’re adding jQuery code, you need to make sure jQuery itself is loaded:

    add_action( 'wp_enqueue_scripts', function() {
        wp_enqueue_script( 'jquery' );
    } );
    Thread Starter Osmel

    (@osmelpv)

    Hi, Thaks Leo and Tom, definitely the conflict was because the function using JQuery. I delete it, and lightbox work. I have to find another way to restrict datapicker or another contact form. Thanks a lot, as usually great suppot

    Theme Author Tom

    (@edge22)

    No problem! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Elementor Lightbox not work with GP (Premium’ is closed to new replies.