Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

hi is there a way to have multiple galleries on one page? or to create sections? idk i'm just trying to find a way to collapse sections of my gallery to make it more organized when coding. i cant have <section>, <article>, or other divs inside the gallery div without breaking it.

(+1)

Hi! The way I originally wrote the template I only intended for there to be one gallery per page, but I think having multiple galleries on one page should be possible. How much work it will take to implement it will depend on whether you want the galleries to be fully distinct from each other, or if just "visually" breaking up one large gallery would be satisfactory.

By "fully distinct galleries" I mean each gallery on your page has their own separate list of tags and their own list of items that belong to that specific gallery - for this I think you'll need to adapt the Javascript and HTML files of the template to accommodate this behaviour.

If you don't need the sections of the gallery on the page to be divided that harshly, then you can use a single, large gallery with, for example, headers and <div>s to visually break up the items in the gallery. I've seen this done on a couple of the pages that use the template; zhongvie's gallery is a good example.

That's about all I can say as a general answer, I hope you can find a good solution to your problem ^_^

(1 edit)

i may try something like zhongvie and see if that works for me. thanks for the suggestion. idk javascript well enough to mess with it successfully.