Great video. Exactly what I needed. The extra time teaching it is very much appreciated!
@deanbirinyi24369 ай бұрын
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!
@stephanelhuile9091 Жыл бұрын
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 Жыл бұрын
I want to do something similar and have been searching for days thank you
@YOgooshusWHAT11 ай бұрын
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?
@Badrogaga-d1o Жыл бұрын
you are the best on youtube about wordpress thank you!!
@gustavomedina2224 Жыл бұрын
Nice brooo! I needed this for new containers, amazing!
@PrakashSahw-vr6bm7 ай бұрын
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 ??
@salesbushehrimohammad10 ай бұрын
This tutorial was wonderful
@nmdk-design6 ай бұрын
You are awesome! This video helped me a lot. Thank you!
@stephanierebel-energyinflu73892 ай бұрын
Can you tell me how to use customized for if you don’t have element or pro? I tried by myself but it didn’t work.
@SatnamSadeora Жыл бұрын
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......
@anushasreerama4683 Жыл бұрын
Does this code need to add any plugin to support the code....?when I am using the code I am getting nothing
@gustavodias1936 Жыл бұрын
me too
@gaeldouay Жыл бұрын
me too...
@Zettabyte-Own5 ай бұрын
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'; } }); } });
@UserOne-ip3jt8 ай бұрын
Thanks dude! Great tutorial
@MahdiAsefi-j6d5 ай бұрын
Thanks man ❤
@luigiiuliano139 Жыл бұрын
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 Жыл бұрын
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
@nurshahirahazahari4563 Жыл бұрын
thankyouu. your tutorial help me a lot
@BrefMcHugh Жыл бұрын
AWESOME video
@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 Жыл бұрын
any way to add animation?
@giosans53457 ай бұрын
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.
@BradEdwards-xj1sl Жыл бұрын
Big Fan of your videos! Need some help with GSAP and Elementor? Can I mail you?
@hichemamarbensaber62398 ай бұрын
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 :(
@superboy16619 ай бұрын
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-Own5 ай бұрын
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 Жыл бұрын
this code does not work
@Zettabyte-Own5 ай бұрын
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'; } }); } });