LIghtbox conflict

Hi,
this is not Tainacan issue per se but I would like to use Meaw Lightbox pluginfor some images galleries on my website but I would like to disable Meaw Lightbox plugin for Tainacan (epecially when clicking on item image and get Lightbox feature from Tainacan). There is an option in Meaw Lightbox plugin called “antiselector” and with that option you can define where not to use that plugin. I asked their support and they answered that “I can use the parent class of the Tainacan plugin to prevent its media from being included in the lightbox”. But I don’t know which parent classes are used for Tainacan lightbox, can you help me.

Tnx

Hi @Vedran_Serbu!

I don’t know how specific the class must be. If they want a generic selector, maybe any image inside the tainacan-media-component class:

.tainacan-media-component img

I’m still struggling with that lightbox + tainacan conflict. I tried another plugin ( Lightbox with PhotoSwipe). It has an option to disable the lightbox on exluded postst/pages by ID or post types but I could not get it working. The problem is when I click in image (https://jug.dad.hr/jug/01-hr-dadu-988-5-1-002-jpg/?perpage=16&paged=1&order=ASC&orderby=title&pos=1&source_list=collection&ref=%2Ffotografije%2F%3Fperpage%3D16%26view_mode%3Dmasonry%26paged%3D1%26order%3DASC%26orderby%3Dtitle%26fetch_only%3Dthumbnail%252Ccreation_date%252Ctitle%252Cdescription%26fetch_only_meta%3D)

i get lightbox effect but after I leave lightbox, I loose right scrollbar and I can get it only if I reload the page. I think this is some kind of conflict, I even insert into “excluded” list every option this lightbox plugin suggested (post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, oembed_cache, user_request, wp_block, wp_template, wp_template_part, wp_global_styles, wp_navigation, wp_font_family, wp_font_face, popup, popup_theme, tainacan-collection, tainacan-metadatum, tainacan-metasection, tainacan-filter, tainacan-taxonomy, tnc_col_684_item, tainacan-log, spectra-popup, wpforms, wpforms-template, stackable_temp_post)

but could not get any change. If I deactivate it, Tainacan ligthbox works pefectly. I need a lightbox on some pages where there are some galleries, but they are not part of the Tainacan database.

Hi @Vedran_Serbu!

I don’t think the filter is being applied because the markup is still being modified by the plugin:

(those data-lbwps come from it).

If it offers an option to disable by post type, you should be able to disable it in your collection single templates by passing the tnc_col_684_item, since this is your collection ID… I’ll do some testing here to see why it still adds its markup. The overflow issue is coming from their Photoswipe instance (we use the same library in our Lightbox)

I was able to filter via post type in my case…

Works fine, when I set it like this it disable the plugin in my single template (no markup changes). When I remove, the bug happens just like you described.

1 Like

I works!!! Thank you Mateus!

1 Like