How To Show And Hide Elementor Sections on Click

Table Of Content

In this article, we will see how to show or hide an Elementor section on a web page using a simple button click.

I have often seen this being asked in many Elementor Facebook Communities. What I usually find is that most of these comments are filled with CSS and JS coding, with ‘helpful’ suggestions about adding this or that class. Aarghhh! We are Elementor users, and we require solutions that are easy to use, and without any coding barriers or using code snippets.

| Join The Plus Addons for Elementor Community, to get the best Elementor tips and how-tos. Even if you’re facing any issue, then feel free to post it in the community and get a detailed solution Join Now

Before we go in-depth with all the possibilities, let’s just see how this looks on a live site.  Click on the Show More button below for a preview.

That looks amazing, doesn’t it? Without using a single line of code,  you can create layouts just like this. We will be using The Plus Addons for Elementor to create this feature – a powerful collection of 120+ extra widgets for Elementor. And we will be using the PRO widget called the Unfold Widget. (Get the Pro version here.)

What Is a Read More Button, And How Is It Useful?

A Read More button is an element of a website where you can show an excerpt of the text or section, and then reveal the complete section after clicking on the toggle button. The Read More (also known as a Show More) button comes in very handy if you have a lot of content, and want to hide part of it until the user wishes to see everything in that section.

Some popular use case for Read More buttons are:

  1. By bloggers, to entice readers to continue reading
  2. Hide entire sections and show them on click
  3. Show more FAQs questions
  4. Show a complete feature list on pricing tables
  5. Help increase mobile user experience by showing reduced content on small screens
  6. Add a paywall to show the complete content only with subscriptions (as seen in NY Times)

How to Add a Read More Button in Elementor

The Read More button doesn’t affect your content indexing, as all the search engine crawlers will be able to crawl your hidden content just as easily as the content visible by default. In fact, if used effectively, the Read More button to show or hide content helps with SEO in various ways:

  1. Better site Navigation — This makes it easier for your readers, especially on mobile, to go through the content they like without cluttering the small device screen. Moreover, this helps increase curiosity by showing only a teaser part of the content.
  2. Helps in Ranking Better — Using the Read More toggle button to hide content helps us rank better, as this increases the time spent by a user on your website.
  3. Increase Click-Through Rates – Using this, you can increase your clicks towards your goal. For example, adding a paywall to show complete content can help you increase your revenue goal. The Plus Addons for Elementor provides extra button features too, which you can add next to the Read More button to redirect to an alternative page.


Track Button clicks conversion for Google Analytics and Facebook Pixel using the Event Tracker Extensions for Elementor – Check Now

How Does a Read More Button Affect Website SEO?

We will be using the Unfold widget from The Plus Addons for Elementor, a unique collection of 120+ Elementor widgets. Everything is kept modular so that you can disable the ones you’re not using, resulting in no extra code and faster performance.

The Unfold widget comes with 4 content sources, which will be useful for multiple use cases:

  • Custom Content — Simple heading and paragraph content
  • Template — Link any Elementor template and add a Read More button
  • Inner Section Based — For content based on old Elementor inner-sections
  • Container-Based — Toggle button for new Elementor containers.
adding a read more button inner section based option

Now let’s understand each of them in more detail.

1) Custom Content

As the image below demonstrates, we get a simple heading and paragraph content. This is the most basic and popular need we see for the Read More button. The content can be manually written by you, or you can also connect with dynamic tags on your single post page in Elementor Theme Builder.

basic options in unfold widget

2) Template

This makes the Unfold widget truly limitless. We know that using Elementor Templates you can add any content format like image gallery, carousels, and any such content that can be built by Elementor. 

selecting elementor template The Plus Addons for Elementor

This option will be helpful, as you can add the Show More toggle button for FAQ (Frequently Asked Questions).  Moreover, if you have a long list of images in an image portfolio, then you can show a small part of the image gallery, revealing the rest when the user clicks the button.

3) Inner Section Based

If you have used the Elementor inner section to build your website content, then you can use this option to hide or show the content inside the inner sections. This will be very helpful if you have multiple icon boxes or info boxes, and wish to hide then under the Read More button.

hide or show the content inside the inner sections The Plus Addons for Elementor

As shared in the image above, you have to place the Unfold widget above or below the inner sections. As you can see in the navigator, it’s placed above in this case. And after clicking on Read Less, the inner section will wrap up to show just the original snippet of the full text. This inner section can have many columns and row divisions, with the Unfold widget able to affect them all.

4) Container Based

After Elementor v3.6, the new FlexBox container was added for better performance. This update opens new doors for the widgets layouts, as a FlexBox is highly customizable without messing much with inner sections.

Check our detailed Performance comparison between old Elementor rows vs New Flexbox containers – Watch Now.

Just like with the inner section, the same would happen with Elementor for the new FlexBox containers. Just place it above or below the containers, and you’re done. 

The power of this widget does not end here; you can customize even more by adding one extra More button, to affect content opacity. Let’s check the options which will help you customize these buttons.

How to Show and Hide Sections Entirely in Elementor?

After dropping the Unfold widget, link the content which you want to hide. After that, simply go to ‘Extra Options’, where you should set the max-height to 1, to completely hide the entire sections or content. This content will be shown only when the button is clicked. As shown in the image below, only the button with the text ‘Show Content’ is visible.

showing and hiding sections entirely in elementor

Once you click on this toggle button, you will be able to see the design completely, with the button text changed automatically to ‘Hide Content’. Amazing isn’t it? We have used Elementor templates for this demo, but you can keep it to just simple text as well.

You can also hide content by using a password, with our Protected Content widget, which will reveal a section only when the user enters a specific text or number as a code – Check Now.

hide content using password

Customizing the Toggle Button and Content Preview

The Plus Addons for Elementor is known for the great level of customization power it provides. Even the simplest widget, such as an accordion, icon box, or tabs can surprise you with the huge range of potential ways they can be used and customized.

You get to customize the button color, hover effects, and add button icons to a Read More toggle button. The widget also has options to add an extra button alongside the Read More button, which you can use to link to other pages of your website. Both of these buttons can be placed above or below the content.

With the content preview controls you can control the opacity of the content shown, and also add a fading effect up to the height you assigned, with an animation time control.

Conclusion

In this blog post we have learned how to add a Read More Toggle button on WordPress using the Elementor Page Builder. Using this powerful widget, you can also hide sections completely as well.

I hope you found this helpful. Let us know in the comments how you plan to use the Read More button, and if you have any questions about any of these tools or features, just ask!

With a range of possible uses, and with multiple benefits, the Read More Button is a must-have element for your website.

Get 120+ Powerful
Widgets for Elementor

Very good collection of Elementor-Extending Widgets. The support is very fast and always there to help you. - familyagency
★★★★★

Leave Your Comment

X