Skip to content

How to Add Read More Toggle Button to Text in WordPress?

Key Takeaways

  • Nexter Blocks Expand block adds a read more toggle button to expandable text in the WordPress block editor without shortcodes or custom code.
  • Expand block supports blog posts, knowledge base articles, FAQ pages, and product or landing pages with long explanations, collapsed answers, or detailed specifications.
  • Expand block lets the user place the toggle button above or below the collapsed text and adjust the initial container height for different screen sizes.
Table of Contents

A long introduction is worth having, but not worth forcing on everyone before they reach the point.

Custom Content shows the first few lines and folds the rest behind a Read More button.

For every Expand setting in one place, see the Expand block guide.

Before You Start

  • Edition: Pro — the Expand block is part of Nexter Blocks Pro.
  • Block to enable: Expand, switched on under Nexter > Blocks in your WordPress dashboard.
  • The text itself — it is typed into the block rather than pulled from elsewhere.
A Read More box collapsed to its Max Height
The same box after the Read More button is clicked

Steps

  1. Add the Expand block to your page and click Design from Scratch.
  1. Type a Title if you want one above the box.
  1. Set Content Source to Custom Content.
The Content Source setting
  1. Type or paste your text into the Content field.
The Content field
  1. In Extra Options, set Max Height — how tall the box is before anyone clicks. Make it shorter than your content.
The Max Height setting
  1. Set the Text for the open and closed labels.
The expand and collapse label fields
  1. Publish and click the toggle.

Max Height has to be smaller than your content. If the content already fits, there is nothing to collapse and the toggle does nothing useful — measured with a short paragraph in a 100 pixel box, where expanding actually made the box smaller.

How It Behaves

  • It really opens and closes. Measured by clicking the toggle: the box went from 100 pixels to 319 and back to 100 on a second click.
  • Max Height is the closed height, so it decides how much of the text shows before anyone clicks. Set to 60, the closed box measured 60.
  • Text sets both labels — Read More and Read Less out of the box, but they can be anything.
  • Custom Opacity fades the last part of the visible text so the cut-off looks deliberate rather than chopped mid-sentence.

Limitations

  • Pro only.
  • The text lives in this block’s own field, so it is not part of the normal editor flow — you cannot drop images or other blocks into it. For that, use ” + a(LOADMORE_DOC, “the Editor source”) + “.
  • Formatting is limited to what the field accepts, so complex layouts belong in a pattern instead.
  • Hidden content is still in the page’s HTML. This is a presentation choice, not a way to keep anything private or to make the page lighter.

Troubleshooting

The button does nothing

Your text is shorter than Max Height, so there is nothing hidden to reveal. Lower the Max Height.

The text is cut off mid-word and looks broken

Switch on Custom Opacity so the bottom fades out instead of stopping abruptly.

I want images and other blocks inside, not just text

Switch Content Source to Editor — see ” + a(LOADMORE_DOC, “the load more guide”) + “.

Related Docs

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!