• Hello,

    I have created a gallery where the thumbnails link to pdf documents which works fine, except for the fact that if I click anywhere between two thumbnails the carousel still comes up. Is there a way to disable this behavior without turning off carousel in jetpack altogether?

    Thanks!

    https://wordpress.org/plugins/jetpack/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor csonnek

    (@csonnek)

    Happiness Rocketeer 🚀

    Can you let me know what site you’re having this problem? Once I have that information, I’ll be better able to help.

    If you want it to remain private, you can also contact us via this contact form:
    http://jetpack.me/contact-support/

    Thanks!

    Thread Starter grgbyny

    (@grgbyny)

    Thank you!

    This is the page in question:

    http://phadroidcollective.com/?page_id=312

    Plugin Contributor csonnek

    (@csonnek)

    Happiness Rocketeer 🚀

    Are you using a plugin that is allowing you to create a gallery using PDFs? The ability to make a gallery with PDFs is not a part of WordPress galleries by default and we were not able to test the behavior of Carousel with this type of gallery setup. Also, Carousel is either on or off site-wide; currently there’s no way to turn it on or off on individual galleries.

    The only thing I can suggest is that you layout the embedded PDFs individually rather than in a gallery, then the Carousel won’t be triggered when a thumbnail is clicked.

    Thread Starter grgbyny

    (@grgbyny)

    No, I’m not using any plugins like that, I created a gallery of jpgs that link directly to the urls of the pdf files. That is standard functionality of WordPress galleries, as far as I know.

    Plugin Contributor csonnek

    (@csonnek)

    Happiness Rocketeer 🚀

    My apologies! You’re linking to the PDF from the image you’re posting…sorry I misread that part! Yes, images are the default functionality of galleries.

    Looking at your theme’s CSS code, I found this item:

    dl.gallery-item {margin:0}

    Aside from it being written incorrectly – its missing the semicolon at {margin:0;}– it’s giving the gallery items zero margin – which is why the clickable area is fitting within the width of the parent container.

    Use this in your theme’s CSS file instead (or use the CSS Editor built into Jetpack):

    .gallery-item {
    float: left;
    }
    
    dl.gallery-item {
    margin: 85px;
    width: auto;
    }

    I kinda eyeballed the margin for spacing the dl.gallery-item, so you may want to adjust that to what looks best to you.

    I hope that helps!

    Thread Starter grgbyny

    (@grgbyny)

    ((Thank you so much! I don’t know where that piece of CSS code came from, thank you for fishing it out for me.))

    Edit: Unfortunately, it seems I was too quick to mark this thread resolved. The new CSS code doesn’t solve the problem.

    So, I’m back to my original question. Is there a way, maybe using a code snippet, to disable carousel on just one gallery?

    Plugin Contributor csonnek

    (@csonnek)

    Happiness Rocketeer 🚀

    Edit: Unfortunately, it seems I was too quick to mark this thread resolved. The new CSS code doesn’t solve the problem.

    I’m afraid extensive CSS assistance is beyond the scope of support that I can provide with Jetpack. The code I provided works by removing the click margins on the thumbnails, but in order to do so, the CSS layout of “auto” for the thumbnail grid margins had to be overwritten – which is why I had to specify the 85px width. Unfortunately, this completely changes the layout of the thumbnail grid.

    I would recommend reaching out to the Themes and Templates forum for more advanced CSS help: http://wordpress.org/support/forum/themes-and-templates

    So, I’m back to my original question. Is there a way, maybe using a code snippet, to disable carousel on just one gallery?

    As I mentioned earlier, there isn’t a way to disable Carousel on specific galleries – it’s either on or off. You could try my suggestion of manually laying out the thumbnails individually to not use the gallery shortcode (which triggers the Carousel) – otherwise there’s not much else I can suggest.

    I hope that clarifies things.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to disable carousel on a specific gallery?’ is closed to new replies.