Skip to content

Cannot customize a specific gallery #8

@Rinyuu

Description

@Rinyuu

I made two different configurations at the end of the main.js file:

gridGallery({
 selector: "#main",
 darkMode: false,
 layout: "square",
 gapLength: 0,
 rowHeight: 500,
 columnWidth: 400
});

gridGallery({
 selector: "#main-vertical",
 darkMode: false,
 layout: "vertical",
 gapLength: 1,
 rowHeight: 800,
 columnWidth: 400
});

However, only the top (selector "main") configuration will be loaded.
I want to apply ONLY the second, vertical configuration to my gallery:

     <div class="gg-box" id="main-vertical">
                        <img src="resources/picture/cr1.jpg">
                        <img src="resources/picture/cr2.jpg">
                    </div>

It will just load the square "main" gallery, though...
Any way to get around this?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions