jackwanders/GalleryView

multiple galleries on one page

Opened this issue · 2 comments

Hi,
How do i add multiple galleries to one page please.

I thought changing id to class would do it i.e. $('.myGallery1').galleryView();

and

    should suffice? I can only get one to appear
    Thanks

S-ed commented

One function call can handle only single UL container. As in sample with ID's.

config js:

$('#galleryname1').galleryView({
...
});
$('#galleryname2').galleryView({
...
});
...

But don't forget about content...
images html:

<ul id="galleryname1">
    <li><img src="http...
    <li><img src="http...
...
<ul id="galleryname2">
    <li><img src="http...
    <li><img src="http...
...

Works but hard to use with a CMS like wordpress.