Create collapsible content

The Collapsible content feature limits the visible height of long content and lets visitors reveal the rest with a button. You can use it for text, images, and other elements in Gutenberg, Elementor, or WPBakery.

Collapsible content expanding after the Read more button is clicked
The hidden content expands when a visitor clicks the Read more button.

Set up collapsible content in Gutenberg

1. Add the WoodMart Collapsible content block to the page.

2. Add or edit blocks inside its Content container. The block also includes a WoodMart Button below the content.

3. Select the Collapsible content block and configure Content height for the required devices. This value determines how much content remains visible before the block is opened.

4. Optionally enable Fade effect, select a Color scheme, and enter Opened state button text, such as “Show less.” Customize the default button text and design by selecting the Button block.

Website editor showing a selected collapsible content block with its settings panel open
Add a Collapsible content block in Gutenberg

Set up collapsible content in Elementor

1. Add an Elementor Container and place the content you want to collapse inside it.

Add a Container in Elementor.

2. Add the WoodMart Button as the last element in the same Container.

Wodmart online store banner for ceramic tiles and plumbing, with a “Buy online” and “Read more” call to action
Keep the Button as the last element inside the same Elementor Container.

3. Select the Container, enable Collapsible content, and configure Column content height. You can also set Fade out color to match the Container background.

Screenshot of Edit Container’s Advanced settings, highlighting [XTemos] Extra and enabled collapsible content with height set to 353
Enable Collapsible content and set the visible content height.

4. Select the Button and enable Use for collapsible content.

Button settings screen with “Use for collapsible content” enabled
Enable Use for collapsible content in the WoodMart Button settings.

Set up collapsible content in WPBakery

1. Place the content and a WoodMart Button inside the same Column. The Button must be the last element in that Column.

Page builder interface showing a section title, text block, and button in an online tile and plumbing store layout
Place the Button after all other elements in the WPBakery Column.

2. Edit the Column, enable Collapsible content, and set Column content height for desktop, tablet, and mobile. Use Fade out color when needed to blend the collapsed content with its background.

Column settings panel with collapsible content enabled and content height set to 353 px
Enable Collapsible content and configure the visible Column content height.

3. Edit the Button and enable Enable collapsible content.

Button settings panel with collapsible content enabled
Enable collapsible content in the WoodMart Button settings.

Check the result

Preview the page on desktop, tablet, and mobile. If the collapsed area is too short or too tall, adjust the content height for that device. When the content is shorter than the configured height, there may be no visible content to collapse.

Wodmart online store offering ceramic tiles and plumbing supplies
Collapsed content on the frontend with the Read more button.

Don’t miss WoodMart updates

Receive feature updates, tutorials, and WoodMart news via email.