Jump to content

'Read more' to reveal text - coding required

Recommended Posts

Hi all!

My photography website is comprised of many project which start with a block of text. This text is often quite lengthy and on mobile devices, takes up the whole screen.

Here's an example: https://www.josephjohnherbert.com/home/tea-pickers-of-nanu-oya

I'm ideally looking for a clean way to hide a chunk of the text, which can be revealed by clicking 'read more'. Rather than a button, I'd prefer it to just be text.

The solution posted in 2022 by @Beyondspacedoesn't seem to work with the current 2023 Squarespace engine, throwing up the code error 'missing {'

I'd love to diagnose this issue myself, but I'm rather clueless when it comes to coding, beyond basic HTML.

Many thanks

Joseph

Link to comment
  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

Do you mind to share the site URl where you want to apply the code?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Can you follow the step 1: adding a text and a link "#read-more" for it in your paragraph?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

You need to place the code into Footer code injection, not the custom CSS

Check this out

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.