yo_its_yoyo Posted October 13, 2021 Posted October 13, 2021 Site URL: https://www.exploreandwonder.com/ Having a hard time understanding the upload sequence for my website. When I upload a new image it automatically adds it to the bottom of the photo pool rather than (what I would think would be) the top. Is there any way to automatically have an upload go to the top next to the blue bird image rather than way at the bottom?
Beyondspace Posted October 13, 2021 Posted October 13, 2021 14 minutes ago, yo_its_yoyo said: Site URL: https://www.exploreandwonder.com/ Having a hard time understanding the upload sequence for my website. When I upload a new image it automatically adds it to the bottom of the photo pool rather than (what I would think would be) the top. Is there any way to automatically have an upload go to the top next to the blue bird image rather than way at the bottom? We can only use javascript to reorder the image display on page load BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
yo_its_yoyo Posted October 13, 2021 Author Posted October 13, 2021 18 minutes ago, bangank36 said: We can only use javascript to reorder the image display on page load Thanks for answering. Do you happen to know how to do that or can point me to where I could find more info on that?
Beyondspace Posted October 13, 2021 Posted October 13, 2021 1 hour ago, yo_its_yoyo said: Thanks for answering. Do you happen to know how to do that or can point me to where I could find more info on that? I provided one working solution once, let me find the old post BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
Beyondspace Posted October 13, 2021 Posted October 13, 2021 1 hour ago, yo_its_yoyo said: Thanks for answering. Do you happen to know how to do that or can point me to where I could find more info on that? I used this snippet to reverse the order of the upload, making the lastest uploaded move to the top, hope this help. Kindly paste the code into the header injection <script> document.addEventListener('DOMContentLoaded', function() { let masonry = document.querySelector(".gallery-masonry .gallery-masonry-wrapper"); let masonryItemReverse = Array.from(masonry.querySelectorAll(".gallery-masonry-item")).reverse().map((item) => { masonry.appendChild(item); }); }); </script> BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
yo_its_yoyo Posted October 13, 2021 Author Posted October 13, 2021 11 hours ago, bangank36 said: I used this snippet to reverse the order of the upload, making the lastest uploaded move to the top, hope this help. Kindly paste the code into the header injection <script> document.addEventListener('DOMContentLoaded', function() { let masonry = document.querySelector(".gallery-masonry .gallery-masonry-wrapper"); let masonryItemReverse = Array.from(masonry.querySelectorAll(".gallery-masonry-item")).reverse().map((item) => { masonry.appendChild(item); }); }); </script> Thank you! Looks like I also need to upgrade my website from person to something more. But once I do I will plus this into the header injection.
Beyondspace Posted October 13, 2021 Posted October 13, 2021 1 minute ago, yo_its_yoyo said: Thank you! Looks like I also need to upgrade my website from person to something more. But once I do I will plus this into the header injection. Cool BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
Recommended Posts
Archived
This topic is now archived and is closed to further replies.