Ready to get started?Download WordPress


Simnor Shortcodes
Can't close the accordion (5 posts)

  1. PeterC66
    Posted 6 months ago #

    I can set the accordion to start off closed. I can open an item OK, and then if I open another item the first item closes. This is fine.
    The problem comes when I try to close an item. It does close but then immediately opens itself. Is there anyway I can make it close properly?
    The site is on my WAMP so not accessible to others.


  2. atlanteavila
    Posted 3 months ago #

    Same exact problem here. Did you ever find a solution?


  3. atlanteavila
    Posted 3 months ago #

    Hi, is this supposed to be the actual functionality where the accordion menu won't toggle closed?


  4. PeterC66
    Posted 2 months ago #

    Hi. I did not get an answer on the accordion, and could not myself see how to change the code to do it (with my limited coding skills).

    I changed to using a series of explicit Toggles, so each and every one can be open or closed. Even this is not ideal because some of my toggle contents are long and to close them users have to scroll up quite a bit. The facility to put buttons within the toggle text to close it would be nice.

    My site is now live and you can page using toggles at http://www.hcnhistory.org.uk/technical/. I am broadly very pleased with this plugin for toggles.

    Thanks to Simnor

  5. plutz1133
    Posted 1 month ago #

    I was having this same issue and played around with the jquery a bit and got it to work by just commenting out a few lines in the includes/shortcodes.js
    The accordion section is at the very top, I commented out these 5 lines:

    /* Accordion */
    `// if(jQuery(this).parent('.simnor-shortcode-toggle').parent('div').hasClass('simnor-shortcode-accordion')) {
    // toggle.parent('div').find('.simnor-shortcode-toggle').find('.simnor-shortcode-toggle-content:visible').slideUp();

    I'm a jquery novice so if this isn't proper form, oh well - it worked for me! lol


You must log in to post.

About this Plugin

About this Topic