• After recent WP updates the KC lightbox option for Single Image is not working correctly. After opening a large image it’s hidden below the screen, you can only see the half of it. And it should be centered on the screen, obviously.

    Please help!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter solmediapl

    (@solmediapl)

    OK, I managed to find a solution by myself. I use Fancybox.

    In functions.php I add to my declarations:

    
    if (is_page()) {
    		wp_enqueue_style( 'fancy-styles', 'https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.5/jquery.fancybox.min.css');
    		wp_enqueue_script( 'fancy-js', 'https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.5/jquery.fancybox.min.js', array(), '3.2.5',true );
    	}

    and in my custom.js I add

    jQuery('a[data-lightbox="kc-lightbox"]').attr('data-fancybox','galeria').removeClass('kc-pretty-photo').removeAttr('data-lightbox').removeAttr('rel')
    jQuery('[data-fancybox="galeria"]').fancybox();

    solmediapl
    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Lightbox position problem’ is closed to new replies.