Jump to content

Adding "Read More" to Image Captions

Recommended Posts

Posted

Site URL: https://fbcamherst.squarespace.com/staff

Password on site is: fbcfbc

I am trying to add a read more, expandable text field to our images using this method. I'm currently using a gallery, which does not allow HTML within the caption. As you can see, we have a lot of text.

Is there a way to enable HTML inside these containers? Is there another way to create an expandable field of text within image captions?

Thank you!

 

FBC Expand.png

  • Replies 6
  • Views 623
  • Created
  • Last Reply
Posted

I would add the html in a code block underneath each image, rather than adding the text as a caption. 

Coding Wiz at rebeccagracedesigns.com

📖 Code Encyclopedia for Squarespace: rebeccagracedesigns.com/encyclopedia-of-code

🔥 Free CSS Tutorials: rebeccagracedesigns.com/blog

️ Free Guide to the 41 Most Popular CSS Properties: rebeccagracedesigns.com/popular-css-properties

 

Posted
On 10/9/2021 at 4:00 AM, Tiger_Thomas said:

Site URL: https://fbcamherst.squarespace.com/staff

Password on site is: fbcfbc

I am trying to add a read more, expandable text field to our images using this method. I'm currently using a gallery, which does not allow HTML within the caption. As you can see, we have a lot of text.

Is there a way to enable HTML inside these containers? Is there another way to create an expandable field of text within image captions?

Thank you!

 

FBC Expand.png

I shared a working snippet using jQuery Readmore.js, you can take reference there

 

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
On 10/12/2021 at 7:16 PM, Tiger_Thomas said:

@rebeccagracedesigns thanks for the idea but when I do this, on mobile the images all come first, then the text fields. I want the text fields to stay beneath each image, so it needs to be attached to the image.

Any other thoughts?

This has to do with how you have added the blocks in the section. Drag all your images to be next to each other. Then make sure to drag the html blocks underneath each photo. If you drag all the html block next to each other, it will look lined up but they won't be in the right order on mobile. 

Coding Wiz at rebeccagracedesigns.com

📖 Code Encyclopedia for Squarespace: rebeccagracedesigns.com/encyclopedia-of-code

🔥 Free CSS Tutorials: rebeccagracedesigns.com/blog

️ Free Guide to the 41 Most Popular CSS Properties: rebeccagracedesigns.com/popular-css-properties

 

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.