Expand Content

The Expand Content shortcode for WordPress can be used to hide content partially, displaying a “View more” link to reveal full content. Check below for example implementations and shortcode documentation:

Expand Examples

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer bibendum accumsan urna, at viverra ante varius bibendum. Quisque accumsan, nunc vel elementum consequat, neque lorem sagittis nulla, ut aliquam libero metus sed est.

Expand Shortcodes

Shortcode
[x3m-expand moretext="View more" lesstext="View less" align="left" height="1"]Hidden text goes here.[/x3m-expand]
The shortcode can be used to hide part of content, with a View more link to expand the content displayed, and View less link to hide it back. Above example displays a model of content expand use.

Expand Content Documentation

Here are the shortcode option settings available for Expand Content:

Shortcode Settings Details
moretext=”View more” This is used to set the text for the View More link.
lesstext=”View less” This is used to set the text for the View Less link.
align=”left” This is used to set link alignment for content expansion.

Options available are: “left”, “center” or “right”

height=”1″ This is used to set the number of content rows to be displayed before the the View More link is included.