@eugeneoei
Strange, maybe try again, I think SquareSpace made some updates. I also started using a different code for this, which I found in an earlier post since I wanted to target a specific gallery. Remember to add this to the page header code injection OR the header code injection for the Index if it's in an Index. Also it may not work in preview. Try testing it from an incognito window in your browser.
<script>
Y.on('domready', function () {
try {
var container = Y.one("#reviews"); /*change this to the slug of your page*/
var gallery = Y.Squarespace.GalleryManager.getGalleryByContainer(container);
gallery.setAttrs({
"autoplay":true,
"autoplayOptions": {
"timeout":9000, /*make this higher to decrease speed, lower to increase it*/
"randomize": true
}
});
} catch (e) {
console.error("Could not configure Gallery autoplay.", e);
}
});
</script>