Elementor Hide Or Show Section On Button Click

by | Jan 12, 2023 | Elementor Page Builder, Web Design, Wordpress

Elementor Hide Or Show Section On Button Click.

Elementor is a great free WordPress page builder plugin. There is a free version as well as a paid version of Elementor. In this series of videos we will be building some great elements on our WordPress website with the Elementor builder.
In this video we are going to create a button that hides or shows a section. We are going to create an button that targets a javascript function. When you click or tap on the button it will reveal or hide a section. This a very useful and space saving feature to have on your Elementor website.
There is a little bit of coding involved today, both javascript and CSS to build this feature. Don’t let the CSS coding put you off, it is very easy, and any code I write today I will paste below the video for you to use as you wish. You are welcome to copy the code and paste it into your site, CSS is a great thing to learn, so I encourage you to try out some of your own ideas to get familiar with it. You can’t break your site with CSS, if something doesn’t work simply delete the code to return back to how the site was previously.
So, follow along and see how easy it is to show or hide a section on button click, with a page built with the awesome free or pro version of elementor page builder
For more information on the Elementor page builder plugin check out our Elementor playlist below.

My Elementor Video Playlist : https://www.youtube.com/watch?v=yN6YlT1Cvqc&list=LLYeyetu9B2QYrHAjJ5umN1Q

Elementor Hover Effects Playlist: https://www.youtube.com/playlist?list=PLqabIl8dx2wqkGuqlL4RRLwJnBRO47jm2

Get Elementor From Here: https://trk.elementor.com/TryElementorToday

W3Schools Code: https://www.w3schools.com/howto/howto_js_toggle_hide_show.asp


/* Hide Section Initially Code */

#dsec {

/* Button Code */

.onclk button {
padding:20px 40px;
text-decoration: none;

.onclk button:hover {

Elementor Ecommerce Shop Site Build: https://www.youtube.com/watch?


Elementor Hover Effects Playlist: https://www.youtube.com/playlist?


Check out our playlist page for more videos on this: https://www.youtube.com/c/System22Net/playlists

Latest YouTube Videos

Subscribe To Our YouTube Channel

4.5 million views on youtube

Test Out The Divi Theme

IT Certification Category (English)300x250

Elementor Page Builder

Pin It on Pinterest

Share This