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
———- CODE USED TODAY ———-
/* Hide Section Initially Code */
#dsec {
display:none;
}
/* Button Code */
.onclk button {
background:blue;
border-radius:5px;
padding:20px 40px;
text-decoration: none;
}
.onclk button:hover {
background:red;
}
Elementor Ecommerce Shop Site Build: https://www.youtube.com/watch?
v=Sl1Ye9XHhgY&list=PLqabIl8dx2wrrX3YsjpIEL8uq5LnSkrhA
Elementor Hover Effects Playlist: https://www.youtube.com/playlist?
list=PLqabIl8dx2wqkGuqlL4RRLwJnBRO47jm2
Check out our playlist page for more videos on this: https://www.youtube.com/c/System22Net/playlists
Latest YouTube Videos