diff --git a/themes/korrigan/templates/partial/korrigan.js.ep b/themes/korrigan/templates/partial/korrigan.js.ep index 0d3a0fb..450e6c0 100644 --- a/themes/korrigan/templates/partial/korrigan.js.ep +++ b/themes/korrigan/templates/partial/korrigan.js.ep @@ -129,3 +129,13 @@ function buildMessage(success, msg) { `; } } + +// Overwrite the function to edit the gallery selector: `.container .gallery` instead of `.gallery` as the page name is added +// to the body's classnames in this theme. +function appendToGallery(url, width, height) { + $('.container .gallery').append(`
+ + + +
`); +}