Jump to content

Making images in a gallery original size when viewing image

Recommended Posts

Posted

So basically I'm a complete noob and I don't even know if this is possible but I'm trying to find out if I can make it so when I right click view image in a gallery it will give me the original size.  I want my gallery to have the max 6 columns because I have many photos but whenever I do that it makes the max width like 300 (.jpg?format=300w)  What I'm asking is there anyway to make it so it will direct to the full size format (without the format=) automatically.

  • Replies 4
  • Views 574
  • Created
  • Last Reply
Posted

Please post the URL for where you are clicking on the gallery.

If your site is not public please set up a site-wide password, if you've not already done so. Post the password here.

We can then take a look at your issue.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Posted

This is confirmed working solution, paste it in Advanced->Code Injection

<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script>
  /* Custom code for display full image on grid 
     author: bangank36
  */
  $(document).ready(function() {
    $(".gallery-masonry-lightbox-link img, .gallery-grid-item-wrapper img, .gallery-masonry-item-wrapper img").each(function() {
      var src = $(this).attr("data-src");
      $(this).attr("src", src);
    })
  });
</script>

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

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.