• Hello!
    I have recently started trying to use the Jetpack Carousel gallery plugin for my image gallery, having deleted the old javascript Lightbox I was using.

    Carousel works perfectly – but WordPress seemed to be inserting its own style code in the generated gallery and messing up my thumbnail alignment.

    I searched these forums and found the following code to insert in my functions.php file:

    add_filter( ‘gallery_style’, ‘my_gallery_style’, 99 );

    function my_gallery_style() {
    return “<div class=’gallery’>”;
    }

    Which worked wonders in removing that auto-inserted gallery style!
    HOWEVER, it also seems to obliterate the link to the Carousel popup – the images show up on a wordpress page instead of the ‘lightbox’ style provided by Jetpack.

    Can anyone help me to figure this out? It’s driving me batty!

    The page in question is https://frenziedsilence.com/image-test/
    I’m still messing with the CSS for the thumbnails…

Viewing 1 replies (of 1 total)
  • Thread Starter frenziedsilence

    (@frenziedsilence)

    update: I removed the above functions.php code and instead used !important in my CSS file to override the style that was being printed by wordpress, which is a good enough fix for now. If anyone else comes up with a better solution, I would love to see it! ??

Viewing 1 replies (of 1 total)
  • The topic ‘Image gallery Carousel problems’ is closed to new replies.