WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes Ultimate
[resolved] Accordion: open spoiler does not close on click (+ solution) (6 posts)

  1. mkearns
    Member
    Posted 2 years ago #

    Hi,

    great plugin and thank you for developing it! a small donation is on it's way once I get paid.

    just a little bug in the Accordion functionality whereby an already open spoiler does not close when clicked.

    Specifically shortcodes-ultimate/js/init.js on line 19

    if ( !isAccordion )

    change to

    if ( isAccordion )

    regards,
    Mark

    http://wordpress.org/extend/plugins/shortcodes-ultimate/

  2. vasilinda
    Member
    Posted 1 year ago #

    Thanks Mark.

    That solved my problem.

    shannon

  3. travellers
    Member
    Posted 1 year ago #

    Yup, many thanks - sorted me too.
    (Now, if only there was a way to 'roll up' in IE8 as well as 9!

  4. paradieserl
    Member
    Posted 1 year ago #

    Fantastic, thank you very much for sharing!

    Nikki

  5. wido
    Member
    Posted 1 year ago #

    Uhm, doesn't work for me, if I change that condition accordion works but the spoiler does not close on click. I removed completely the condition and works correctly for both.

    However, is normal that accordion and spoiler showing the same way?
    This is my output http://i47.tinypic.com/9rqds3.jpg, the second spoiler is wrapped with accordion tag.

    [spoiler title="Spoiler title" open="0" style="1"]Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec mollis.[/spoiler]

    [accordion][spoiler]Content[/spoiler][/accordion]

  6. developer wiz
    Member
    Posted 1 year ago #

    Thanks Mark, It worked perfectly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic