Have first item of Toggle open by default
-
There was already a thread about this that was marked resolved, though it really wasn’t, from the user’s perspective.
A snippet that should do this for all Toggle widgets is as follows:
<script> (function($) { $ && $(function() { $('.elementor-toggle-item:first-child') .children('.elementor-tab-title') .addClass('elementor-active') .attr({ 'aria-expanded': 'true', tabindex: '0', 'aria-selected': 'true' }) .end() .children('.elementor-tab-content') .addClass('elementor-active') .css('display', 'block'); }); })(window.jQuery); </script>
You can add it under Admin > Elementor > Custom Code.
It’d be much better if this was just a setting in the editor.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Have first item of Toggle open by default’ is closed to new replies.