Hi,
I’m using a custom tab in my products to define the allergens that customers should be aware of. The tab is automatically fully opened instead of closed. In elementor I use the following code I found on this forum:
<script>
jQuery(document).ready(function($) {
var delay = 100; setTimeout(function() {
$('.elementor-tab-title').removeClass('elementor-active');
$('.elementor-tab-content').css('display', 'none'); }, delay);
});
</script>
This code can’t be used with this custom tab. How can this be fixed? Suggestions to make sure the tab is always closed?
Attachments:
You must be
logged in to view attached files.