Show Hide Text in WordPress Using Visual Editorįor this method, you’ll need to add the ‘Classic’ block in your WordPress content editor. In that case, you can use the second method which allows you to generate the shortcode using a visual editor. However, it would be quite complicated to generate this shortcode manually. There are plenty of parameters for this shortcode which will change the appearance of your show / hide text.įor instance, you can add a button instead of plain link, add icons, and even use custom CSS within this shortcode. You’ll see a plain ‘Show More’ link and clicking on it will reveal the hidden text. Here is a sample shortcode that you can use as a starting point.Īfter adding the shortcode to your post or page, you can save your changes and preview it. Show Hide Text in WordPress Using Shortcodeįor this method you will need to manually add a shortcode to show or hide text. It allows you to use two methods to hide any text on your website with a link to expand and show the text. The plugin works out of the box, and there are no options for you to configure. For more details, see our step-by-step guide on how to install a WordPress plugin. The first thing you need to do is install and activate the Show-Hide / Collapse-Expand plugin. In this article, you’ll learn how to show and hide text in WordPress posts with the toggle effect. This is especially helpful when you want to feature a frequently asked questions section. Sometimes you might want to allow your users to see hidden content when they click on a specific link. Do you want to show and hide text easily in your WordPress posts and pages?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |