No need of the gallery lightbox modal

I need your help.
I’m trying to search for the setup to disable the gallery lightbox modal but cannot find this. It means that I click the image, and the image is entirely fixed and show up NO lightbox modal, NO new tab, and NO new page.

See the attached screenshot copy.

I might put “display: none;” on the CSS, so would you give me a right code?

Hi @koeiyabe!

For disabling the lightbox, you’ll have to go to your “Appearence” → “Customize” menu, then open “Tainacan Item Page” → “Item document and attachments” and check the “Disable gallery modal lightbox”:

This will disable the lightbox, but the image remains a link, if the user click on it will go to the image direct file in the browser. if you don’t like that then this css could do the last trick:

.tainacan-media-component__swiper-main .swiper-slide-content a {
     pointer-events: none !important;
}

Thanks. Solved. Could you please help remove or reduce the extraneous footer space?

.tainacan-footer.mt-5 {
     margin-top: 0px !important;
}

Done, but I just want to remove the extra space above “Extinct Breeds” shown in the image. Would you give me another code?

.tainacan-footer.mt-5.p-4.p-sm-5 {
     margin-top: 0px !important;
     padding-top: 0px !important;
}

Done. Solved. Thanks.

Este tópico foi fechado automaticamente 5 dias depois da última resposta. Novas respostas não são mais permitidas.