How do I create a collapsible section in WordPress?

How do I create a collapsible section in WordPress?

Once you’ve installed the plugin, go to your WordPress post editor and click on the plus (+) sign to add a new block. Then search for ‘Content Toggle’. Insert the block and then add the title of your collapsible/expandable text in the ‘Panel Title’ and add the main content under it.

How do I collapse and expand text in WordPress?

Activate the plugin through the ‘Plugins’ screen in WordPress. Go to Tools->ShowHide/CollapseExpand screen to customize plugin settings (animation effect and animation speed). Go to the post/page you need to add the shortcode to and click the Collapse-Expand button in your TinyMCE Editor.

How can I hide a shortcode in a post?

[bg_collapse view=”link” expand_text=”Show More” collapse_text=”Show Less\\ The text you want to hide… After adding the shortcode to your post or page, you can save your changes and preview it. You’ll see a plain ‘Show More’ link and clicking on it will reveal the hidden text.

How to hide and show text in WordPress posts?

The plugin works out of the box and there are no options for you to configure. To hide the text in posts using the toggle effect, you need to use the shortcode like this: Upon first usage of the shortcode you will notice that it shows the toggle link with the text “Show Press Release (xx more words)”.

How to add a shortcode to a WordPress post?

Disable shortcode on desktop, mobile devices. A button in post editor to pick the shortcodes to insert. Supports Gutenberg. Create a shortcode named “adsenseAd” in the Shortcoder admin page. Paste the adsense code in the box given and save it. Use [sc name=”adsenseAd\\ in your posts and pages.

What’s the best way to hide text in CSS?

Just add font-size: 0; to your element that contains text. If you can use CSS2, then there are some better ways using the content property, but unfortunately the web isn’t 100% there yet. In addition to the other answers, here is another useful approach for hiding text.