To save some space on your WordPress posts/pages, you may want to hide some content. This way, users will only check the information if they feel interested.
The idea is to hide a part of your content under the ‘Show more’ text. And when a user clicks on the ‘Show more’ link, it will reveal the hidden text.
Like everything we do in WordPress, it can be done by using a plugin. Here I’ll show you how to show and hide text in WordPress using the Ultimate Blocks plugin. It’s a must-have plugin for the WordPress editor.
How To Show And Hide Text In WordPress
At first, you need to install the plugin. Just go to your WordPress Dashboard > Plugins > Add New and search for ‘Ultimate Blocks’. Click on the ‘Install Now’ button and activate the plugin.
Once you’ve activated the plugin, go to the post/page where you want to add the ‘show and hide’ content.
Simply click on the + icon to add a new block. Search for the ‘Expand‘ block and add it to the editor.
On the next step, click on the first + icon to add the shown text and the second + icon to add the hidden text.
Upon clicking on the first + icon, select the ‘Paragraph’ to add shown text.
Then simply add the text that you want to show to visitors.
Do the same thing for adding the hidden text.
Your show and hide text will look like this –
That’s it. You’re done.
Hope this tutorial helped you to add show and hide text to your WordPress posts/pages.
If you have any questions regarding this, feel free to ask via comment. And if you’ve liked the post, please consider sharing the post.