• Resolved CodeGeek

    (@codegeek)


    I am a developer and I use this plugin on a number of my websites (it’s fabulous!). With the latest update though, all of my accordion panels are now open and will not open/close when clicked. I’ve reverted my site back for now but can you check into this? I’ve tried updating this plugin before and after updating the WordPress core from 5.0 to 5.1 so I’m wondering if it’s specific to this update. Looking forward to your thoughts.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    Oh no! Sorry to hear that.

    Were you getting any console errors? Have you added any other custom JS related to the accordions?

    I haven’t seen any issues on any of the sites I use it on, so any direction you can provide would be useful.

    Thread Starter CodeGeek

    (@codegeek)

    I was not getting any console errors. I don’t believe I have any other custom JS related to it either –?the default functionality is working well. Let me know how we should proceed.

    Thread Starter CodeGeek

    (@codegeek)

    Here’s another site I’m using it on –?this time I left the update in place: https://www.mhbwy.com/about-us/our-team/. Maybe I do have custom code. I’ll let you know when I update another site for sure that uses a different theme.

    Plugin Author philbuchanan

    (@philbuchanan)

    It looks like the JS has been updated to the new version, but the HTML output has not.

    There should be a js-accordion-controller class on each title that the JS uses to add the event listeners for opening and closing the accordions. A couple other attributes are also present, which shouldn’t be there any more (such as aria-selected.

    Maybe this is a caching issue? Or have you added the HTML manually?

    Just to chip in on this. I was having the same problem. When I cleared cache and minified JS in WP Fastest Cache, the problem went away.

    Thread Starter CodeGeek

    (@codegeek)

    Thanks @philbuchanan and @cleanpagedesign for your help. Some custom coding was the culprit. I updated it to fully use the shortcode API and that fixed the issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Accordions now won’t open/close’ is closed to new replies.