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
Expand Shortcodes
Shortcode
[x3m-expand moretext="View more" lesstext="View less" align="left" height="1"]Hidden text goes here.[/x3m-expand]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. |