Jump to content

Adding "Read More" to Image Captions

Recommended Posts

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

Edited by Tiger_Thomas
Adding image
Link to comment

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

Edited by rebeccagracedesigns

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

 

Link to comment
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

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
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

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.