Default close accordion | WordPress.org

[ad_1]

Hi @delucks,

For now, collapsing course module accordions by default isn’t a core feature of the plugin. However, this plugin may have what you need. That plugin hasn’t been tested or updated in a while, so I’d say use it with caution.

If you can drop an enhancement/feature request about this on the Sensei LMS GitHub repository, that would be great. Here’s a quick link to get you started:

Submit New Sensei Feature Request

Hi,
Thank you! The mentioned plugin isn’t up-to-date and seems broken according to the reviewers. So, I just created a CSS-based workaround, as I’m not good at waiting:

.sensei-collapsible__content {
opacity: 0;
max-height: 0;
}

.sensei-collapsible__content.collapsed {
opacity: 1;
max-height: none !important;
}

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer