For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Collapse long text

Shorten a text block to a few lines, with View more and View less, and where that checkbox lives.

Collapse long text shortens a block of text to a few lines and adds a button to open the rest.

The checkbox is Collapse long text. The settings under it appear only while it is on.

1

Turn it on

  • Collapse long text Off out of the box.

2

Choose how many lines stay visible

  • Visible lines on desktop 2 to 20. The default is 4.

  • Visible lines on mobile 2 to 20. The default is 3.

3

Name the buttons

  • Expand button label Empty out of the box, which shows View more.

  • Show collapse button On out of the box. Turn it off and the shopper can open the text, with no button to fold it back.

  • Collapse button label Visible while Show collapse button is on. Empty out of the box, which shows View less.

Good to know

The button stays hidden when the text already fits in the chosen number of lines.

This is not Collapsible description, Pop-up description, or Collapsible tab. Those are separate blocks.

The same checkbox, with the same defaults, is on:

  • the Description block and the Text block in Product overview, Featured product, and Quick view

  • the Testimonial block

  • Collection banner and Collection banner vertical, visible only while Show collection description is on

  • Text blocks in other sections, including the text inside News drawer blocks

Was this helpful?