Automatically close all "accordion" widgets on a website. #25828
JorgeGarciabur
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
What problem is your feature request going to solve? Please describe..
Many web creators had built websites with many "accordion" widgets and we had a custom script that, using an HTML widget on each of the URLs we created, made all the accordion widgets appear closed by default.
In another update, this stopped working, but in the Elementor settings, under "optimized DOM output" when set to inactive, it started working again.
With the latest update, it is no longer possible to disable this, so now all the accordions on the website open automatically, and it is a big design issue. It's true that the latest accordion widget gives you the option to close it, but you have to change each accordion one by one, design, etc.
The code I used to make it close is:
<script> jQuery(document).ready(function($) { var delay = 100; setTimeout(function() { $('.elementor-tab-title').removeClass('elementor-active'); $('.elementor-tab-content').css('display', 'none'); }, delay); }); </script>Describe the solution you'd like.
The perfect solution would be a CSS code or something that made all accordion widgets closed by default.
Describe alternatives you've considered.
The alternative is to modify the accordions one by one on each URL.
Additional context
No response
Agreement
All reactions