Jump to content

How to change order of content upload?

Recommended Posts

Posted

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?

Screenshot 2021-10-12 212806.png

  • Replies 6
  • Views 800
  • Created
  • Last Reply
Posted
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?

Screenshot 2021-10-12 212806.png

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

Posted
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? 

Posted
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

Posted
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>

image.thumb.png.3f18d4e58c0c5e3704f5ae70a0da8366.png

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

Posted
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>

image.thumb.png.3f18d4e58c0c5e3704f5ae70a0da8366.png

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. 

Posted
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.