No video

Show and Hide containers on click in Elementor | Detailed Explainer

  Рет қаралды 19,824

Uriel Soto

Uriel Soto

Жыл бұрын

In this video, I teach you how to show and hide containers on click. I do this in the simplest way for you to understand and write jQuery code from
scratch.
Source code:
urielsoto.com/...
Download the website shown in the video:
urieljsoto.gum...
🟢 Email Technical Support:
urieljsoto.gum...
🔵 Video Call Technical Support:
urieljsoto.gum...
🔴 Download My Custom Templates:
urieljsoto.gum...
🔵 Join Our Facebook Community!
bit.ly/urielsot...
🟢 My Web Agency:
vluxdesigns.com/
PRODUCTS I USE FOR MY WEBSITES:
🔴 Get Elementor Pro - My Favorite Page Builder
bit.ly/urielele...
CONTACT ME:
My Website: urielsoto.com/​
Facebook: / urielsotodev
Linkedin: / uriel-soto-976b3117a

Пікірлер: 29
@deanbirinyi2436
@deanbirinyi2436 5 ай бұрын
It works great. It's just what I needed to showcase my 10 different services without having a "wall of text" on the page. ¡Gracias!
@PrakashSahw-vr6bm
@PrakashSahw-vr6bm 2 ай бұрын
I just created 2 sets of buttons and conatiners one for desktop and one for mobile but the issue is only works at a time. How to fix ??
@stephanelhuile9091
@stephanelhuile9091 8 ай бұрын
Thank you very much for this tutorial. Thanks to it, I was finally able to make a carousel of 12 buttons that display different content depending on the button clicked. Thank you very much because I didn't understand the importance of hiding the containers!
@outuvcontext
@outuvcontext 8 ай бұрын
I want to do something similar and have been searching for days thank you
@YOgooshusWHAT
@YOgooshusWHAT 7 ай бұрын
Is there a script to hide all content besides the content activated by the button or do you have to input all 11 other containers of content to hide on every button?
@MahdiAsefi-j6d
@MahdiAsefi-j6d 14 күн бұрын
Thanks man ❤
@nmdk-design
@nmdk-design Ай бұрын
You are awesome! This video helped me a lot. Thank you!
@user-uo9bp4zk2z
@user-uo9bp4zk2z Жыл бұрын
you are the best on youtube about wordpress thank you!!
@giosans5345
@giosans5345 3 ай бұрын
really nice. On PC it works perfectly, but not on mobile. I read online that a Touch or TouchStart function should also be implemented, but nothing works.
@hichemamarbensaber6239
@hichemamarbensaber6239 3 ай бұрын
Good job, the only issue (display: none) will make the element not visible, in fact both forms are in the DOM tree, so it's easy for an user to display both form from the navigator :(
@gustavomedina2224
@gustavomedina2224 11 ай бұрын
Nice brooo! I needed this for new containers, amazing!
@salesbushehrimohammad
@salesbushehrimohammad 6 ай бұрын
This tutorial was wonderful
@SatnamSadeora
@SatnamSadeora 7 ай бұрын
Hi, I am not able to add "Show more/Less" button to the Grid using Generate Press Themes/Generate Blocks Plugin. I have created a Grid to showcase some 20 products, out of which I only want to show 5 at the begnining unless a customer clicks on "Show More" button to reveal the all in the list. Have been searching for the solution for the past 3 days, but in vain. I am not a techie hence finding it very difficult to solve the issue. Is there any wayout? Thanks......
@UserOne-ip3jt
@UserOne-ip3jt 3 ай бұрын
Thanks dude! Great tutorial
@luigiiuliano139
@luigiiuliano139 8 ай бұрын
Hi , everything is working perfectly inside the editor but in frontend the script is not working, do you know any solutions? Thanks for the time.
@olarewajuoluwaseyifunmi6065
@olarewajuoluwaseyifunmi6065 8 ай бұрын
Thanks for the video Uriel, that was really helpful on my website I am currently working on. However, a quick question I will like to ask is, what code can I use to close the hide the container back after another click. I do not want it to be open and I do not want to hide the icon. How do I make the animation close back on another click. I look forward to your response Uriel, thanks
@anushasreerama4683
@anushasreerama4683 Жыл бұрын
Does this code need to add any plugin to support the code....?when I am using the code I am getting nothing
@gustavodias1936
@gustavodias1936 Жыл бұрын
me too
@gaeldouay
@gaeldouay 11 ай бұрын
me too...
@Zettabyte-Own
@Zettabyte-Own 10 күн бұрын
document.addEventListener('DOMContentLoaded', function() { // Button Variables const greatBtn = document.querySelector('.great-btn'); const badBtn = document.querySelector('.bad-btn'); // Container Variables const rateBox = document.querySelector('.rate-container'); const greatBox = document.querySelector('.great-container'); const badBox = document.querySelector('.bad-container'); // Ensure that rateBox is always visible if (rateBox) rateBox.style.display = 'block'; // Show the great form and hide the bad form if (greatBtn) { greatBtn.addEventListener('click', function() { if (greatBox) { greatBox.style.display = 'block'; } if (badBox) { badBox.style.display = 'none'; } }); } // Show the bad form and hide the great form if (badBtn) { badBtn.addEventListener('click', function() { if (badBox) { badBox.style.display = 'block'; } if (greatBox) { greatBox.style.display = 'none'; } }); } });
@meisterleise
@meisterleise Жыл бұрын
Thank you! Especially for explaining the code. One thing: I'm missing animations for the show and hide. Without animation it can be difficult for the visitor to understand what is happening.
@fedea8489
@fedea8489 Жыл бұрын
any way to add animation?
@nurshahirahazahari4563
@nurshahirahazahari4563 11 ай бұрын
thankyouu. your tutorial help me a lot
@BrefMcHugh
@BrefMcHugh Жыл бұрын
AWESOME video
@BradEdwards-xj1sl
@BradEdwards-xj1sl Жыл бұрын
Big Fan of your videos! Need some help with GSAP and Elementor? Can I mail you?
@superboy1661
@superboy1661 4 ай бұрын
This code does not work. It only works in elementor preview or in elementor. When I go to normal or go on my phone it doesn’t work.
@Zettabyte-Own
@Zettabyte-Own 10 күн бұрын
document.addEventListener('DOMContentLoaded', function() { // Button Variables const greatBtn = document.querySelector('.great-btn'); const badBtn = document.querySelector('.bad-btn'); // Container Variables const rateBox = document.querySelector('.rate-container'); const greatBox = document.querySelector('.great-container'); const badBox = document.querySelector('.bad-container'); // Ensure that rateBox is always visible if (rateBox) rateBox.style.display = 'block'; // Show the great form and hide the bad form if (greatBtn) { greatBtn.addEventListener('click', function() { if (greatBox) { greatBox.style.display = 'block'; } if (badBox) { badBox.style.display = 'none'; } }); } // Show the bad form and hide the great form if (badBtn) { badBtn.addEventListener('click', function() { if (badBox) { badBox.style.display = 'block'; } if (greatBox) { greatBox.style.display = 'none'; } }); } });
@Flinkierownikosiedla
@Flinkierownikosiedla Жыл бұрын
this code does not work
@Zettabyte-Own
@Zettabyte-Own 10 күн бұрын
document.addEventListener('DOMContentLoaded', function() { // Button Variables const greatBtn = document.querySelector('.great-btn'); const badBtn = document.querySelector('.bad-btn'); // Container Variables const rateBox = document.querySelector('.rate-container'); const greatBox = document.querySelector('.great-container'); const badBox = document.querySelector('.bad-container'); // Ensure that rateBox is always visible if (rateBox) rateBox.style.display = 'block'; // Show the great form and hide the bad form if (greatBtn) { greatBtn.addEventListener('click', function() { if (greatBox) { greatBox.style.display = 'block'; } if (badBox) { badBox.style.display = 'none'; } }); } // Show the bad form and hide the great form if (badBtn) { badBtn.addEventListener('click', function() { if (badBox) { badBox.style.display = 'block'; } if (greatBox) { greatBox.style.display = 'none'; } }); } });
How To Create An Unfold Widget With Elementor For Free
11:21
Croco Mentor
Рет қаралды 9 М.
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 9 МЛН
Logo Matching Challenge with Alfredo Larin Family! 👍
00:36
BigSchool
Рет қаралды 10 МЛН
Step-by-Step: Design A Mobile Menu Header in Elementor (Free)
15:27
✅ Button to show or hide content with Elementor free
10:15
Show or Hide A Section With Bricks Builder
21:59
Aperture Digital Marketing
Рет қаралды 2,7 М.
PLAY VIDEO ON SCROLL - GSAP Scrolltrigger Elementor (No plugin)
5:54
Nicolai Palmkvist
Рет қаралды 126 М.
Show More/Show Less... using Elementor (Free)
14:53
Jim Fahad Digital
Рет қаралды 49 М.
Elementor Hide Or Show Section On Button Click 👈👈👈
15:14
System 22 Web Design | Divi Theme Elementor WP
Рет қаралды 85 М.
Slide Out Mobile Menus for Elementor With No Plugin or Pop Ups
24:20
Jeffrey @ Lytbox
Рет қаралды 72 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 939 М.