Easy Accordion Pro

  1. Home
  2. Docs
  3. Easy Accordion Pro
  4. FAQs
  5. How to Keep an Accordion Tab Always Open?

How to Keep an Accordion Tab Always Open?

If anyone wants to keep an accordion tab always open even when they click on other tabs, he/she can do this by following custom CSS code. For example, if someone wants to keep the first accordion tab always open. For that, he/she needs to use the custom CSS code to the plugin’s Settings → Custom CSS and save it.

#sp-ea-18.sp-easy-accordion>.sp-ea-single:nth-of-type(1) > .ea-header {
    pointer-events: none;
}
#sp-ea-18.sp-easy-accordion>.sp-ea-single:nth-of-type(1) > .spcollapse {
    display: block !important;
}

Note: Replace the shortcode ID (#sp-ea-18) from the CSS with yours. Besides, you can select the

tab you want to keep open by writing the tab number in the CSS code nth-of-type(5).