How to Make Accordion Closed by Default in Elementor? / एलिमेंट में डिफ़ॉल्ट रूप से अकॉर्डियन को कैसे बंद करें?
In elementor we can not make accordion closed by default, so in that condition we have two method to solve this problem./ हम डिफ़ॉल्ट रूप से अकॉर्डियन को बंद नहीं कर सकते हैं, इसलिए उस स्थिति में इस समस्या को हल करने के लिए हमारे पास दो तरीके हैं:-
1. Using Jquery
2. Using Css
1. Using Jquery
Follow the following steps/ निम्नलिखित चरणों का पालन करें
1. Add accordion widget / अकॉर्डियन विजेट जोड़ें
2. Using another widget html code and add the folowing code: / एक अन्य विजेट एचटीएमएल कोड का उपयोग करना और निम्नलिखित कोड जोड़ें:
Add this code:
<script>jQuery(document).ready(function($) {
var delay = 100; setTimeout(function() {
$('.elementor-tab-title').removeClass('elementor-active');
$('.elementor-tab-content').css('display', 'none'); }, delay);
});</script>
2. Using CSS
In this method we need to duplicate your first accordion item
Add following code:
.accordian-sec .elementor-accordion .elementor-accordion-item:first-child {display: none;}
Please do not entering spam link in the comment box ConversionConversion EmoticonEmoticon