Skip to content

How to add Read More Toggle Button to Text in Elementor?

Table Of Content

Long blocks of text push the rest of the page down. A Read More toggle shows the first lines and lets visitors open the rest when they want it.

The Unfold widget from The Plus Addons for Elementor cuts your text to a set height, fades the last visible lines and adds a Read More / Read Less button.

To check the complete feature overview documentation of The Plus Addons for Elementor Unfold widget, click here.

Requirement – This widget is a part of The Plus Addons for Elementor Pro, make sure it’s installed & activated to enjoy all its powers.

Before You Start

  • Edition: Pro — Unfold is a Pro widget. In the free plugin it appears in the Elements panel with a lock icon, and a page that already holds an Unfold widget shows nothing of it while Pro is inactive.
  • Widget to enable: Unfold, switched on under The Plus Addons > Widgets.

How to Add a Read More Button to Text

  1. Drag the Unfold widget onto the page. In Content > Unfold, type a heading in Title, or clear the field if you don’t want one.
  2. Leave Select Source on Custom Content.
  3. Paste the whole text into Content. The first part stays visible; the rest opens when the visitor clicks the button.
The unfold widget with select source set to custom content and product text in the content editor
  1. Change Expand Button Text and Collapse Button Text if you want other labels than Read More and Read Less.
The expand button text field highlighted in the unfold section, with collapse button text below it
  1. Open Content Options and set Max Height, the height of the text box before it opens (default 100 px). Use the device icon next to the label for a different tablet or mobile height.
  2. Choose Content Expand Direction: Above Button shows the text and then the button, Below Button puts the button first.
Max height set to 120 in the content options section of the unfold widget

The same two options in motion:

Animated demo of content expand direction and max height in the content options section
  1. Publish the page and click Read More to test it.
Product text cut after two lines with a fade and a read more button on the live page

After the click the full text is shown and the button reads Read Less:

The same product text fully open with a read less button below it

Content Options at a Glance

SettingWhat it doesDefault
Max HeightVisible height before the text opens, 1-500 px. The tablet value applies from 1024 px wide down, the mobile value from 767 px down. An empty tablet or mobile value uses the next larger device’s height.100 px
Content Expand DirectionAbove Button: text, then button. Below Button: button, then text.Above Button
Custom OpacityOff: a white fade covers the visible text. On: the fade covers only the bottom Opacity Height and fades to Opacity Color.Off (Opacity Height 80 px)
Transition Duration (0 – 5000)How long opening and closing take, in milliseconds.200
Toggle AlignmentPosition of the button row, per device.Left
Scroll TopAfter Read Less, scrolls the page back up to the widget title.Off

Here is a Read More toggle opening and closing:

Animated demo of a read more toggle opening and closing a block of text

How It Behaves

  • The button only appears when the text is taller than Max Height on that device.
  • Read More opens the box to the full text height and removes the fade. Read Less closes it to the Max Height of the current device.
  • Several Unfold widgets on one page open and close independently.

Limitations

  • The default book icons do not show on the page. They need Font Awesome, which the widget does not load. Choose your own icons in Expand Button Icon and Collapse Button Icon, and set Style > Toggle Button > Toggle Icon Options > Size: without a size, a chosen icon was about 40 px wide and pushed the button text onto two lines.
  • The last line can be cut off when the text is open if your theme adds space above paragraphs. The widget measures the text without that space.
  • Text shorter than Max Height gets no button, but the box keeps its height and the fade still covers the text.
  • A Transition Duration of 0 is treated as 200 ms.

To stop the cut-off last line, set Style > Description > Margin to 0 at the top. In our test a margin of 0 top and 16 bottom showed the whole text and kept the space between paragraphs.

Description margin set to 0 top and 16 bottom in the style tab of the unfold widget

Troubleshooting

There is no Read More button

The text fits inside Max Height. Lower Max Height, and check the tablet and mobile values too.

The button has no icon

Pick an icon in Expand Button Icon and Collapse Button Icon and give it a size under Toggle Icon Options.

The opened text is cut off at the bottom

Set the top value of Style > Description > Margin to 0.

Related Docs

Related Frequently Asked Questions

Related Docs