i use wordpress 4.2.2, lightbox plux colorbox plugin, tabs plugin , native gallery.
i have single page 2 tabs. each of tabs contains own gallery that:
[tab title="tab 1"] [gallery link="file" columns="1" ids="1,2,3,4,5"] [/tab] [tab title="tab 2"] [gallery link="file" columns="1" ids="6,7,8,9,10"] [/tab]
when click on thumbnail, lightbox pops , has 10 pictures in it, despite gallery has 5. problem pictures both galleries appear in same lightbox.
how can have separate lightboxes each gallery?
thanks massive support, folks. solved issue myself little js hack:
<script type="text/javascript"> $ = jquery; $(function(){ $('li.tab-pane').each(function(i, obj) { var uid = $(this).attr('id'); $('#'+uid).find('a').attr('rel', 'lightbox['+uid+']'); }); }); </script>
Comments
Post a Comment