Unverified

Name

Accordion Closed by Default

About

Forces Elementor accordion to be closed by default, instead of the first one being open.

Language

Javascript

Rating

Voted: 0 by 0 user(s)

How to Setup Snippet

Insert code into a new content snippet. Select " Display at the end of the <body> section, in the footer." to always have accordions closed. Select "Only display when inserted into a post or page" and add it to specific pages to only close accordions on that page.

Codevault

Arcane-Tech

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

Website/ Profile URL:

https://arcanetechsolutions.com

History

Last modified:

23/06/2023

Important Note

This snippet has the following status:

Unverified

This snippet has not been verified, use with caution and at your own risk. See details provided by author in sidebar and click below to find out more.

Accordion Closed by Default

 
                    
1var delay = 100; setTimeout(function() {
2 $('.elementor-tab-title').removeClass('elementor-active');
3 $('.elementor-tab-content').css('display', 'none'); }, delay);
4});

0

Related Snippets

Please see some snippets below related to this snippet..

Elementor

Unverified

0

Elementor-Dynamic-Pop-Up-Loop

Added: 1 week ago

Last Updated: 1 week ago

Elementor

AI Verified

0

Custom Class for Elementor Form Widget Items

Added: 7 months ago

Last Updated: 7 months ago

Add custom classess to form elements using elementor; Note: if you want to add to other field types like select, then just add this to the allowed fields array: $allowed_fields just add the type, lik...

Elementor

Unverified

0

Calculated-Many-Selects

Added: 4 weeks ago

Last Updated: 4 weeks ago

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

Elementor

Unverified

0

Accordion Closed by Default

Added: 1 year ago

Last Updated: 1 year ago

Forces Elementor accordion to be closed by default, instead of the first one being open.