Title: Accordion active element &#8211; initialization issue
Last modified: August 22, 2016

---

# Accordion active element – initialization issue

 *  [digitalcarla](https://wordpress.org/support/users/digitalcarla/)
 * (@digitalcarla)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/accordion-active-element-initialization-issue/)
 * If I specify active=”active” in the shortcode, the section displays expanded 
   as expected, however it is missing the class=”active” on the parent element. 
   Once I close and reopen the section the classname is applied correctly. I’m using
   the classname to add custom toggle icons so its important that the classname 
   reflects the state of the section. Thanks!
 * [https://wordpress.org/plugins/easy-foundation-shortcodes/](https://wordpress.org/plugins/easy-foundation-shortcodes/)

The topic ‘Accordion active element – initialization issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-foundation-shortcodes_73bdce.
   svg)
 * [Easy Foundation Shortcode](https://wordpress.org/plugins/easy-foundation-shortcodes/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-foundation-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-foundation-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-foundation-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-foundation-shortcodes/reviews/)

## Tags

 * [foundation](https://wordpress.org/support/topic-tag/foundation/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 0 replies
 * 1 participant
 * Last reply from: [digitalcarla](https://wordpress.org/support/users/digitalcarla/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/accordion-active-element-initialization-issue/)
 * Status: not resolved