• Resolved pawanahluwalia

    (@pawanahluwalia)


    Hi,

    I have followed the advice in creating nested spoilers at:

    https://getshortcodes.com/docs/nested-shortcodes-shortcodes-in-attributes/

    I know it says this is not recommend. However, I have a need for this. Everything works fine. There is one issue. I quite like the feature where expanding a spoiler closes a previously expanded spoiler. This works at the top level, but does not work at the nested level. It seems it is possible to expand multiple nested spoilers. Is there any way to prevent this?

    Thanks for any help.

Viewing 1 replies (of 1 total)
  • Thread Starter pawanahluwalia

    (@pawanahluwalia)

    It appears that I misunderstood how the [su_accordion] and [su_spoiler] shortcodes work. I now understand that the self-closing feature is provided by the [su_accordion] shortcode and if I need the self-closing feature on any nested spoilers then I need to nest the accordions also.

    However, I notice that in order for this to work, I need to enable this feature in the settings. But you have stated that this is a deprecated feature. I hope you will maintain this feature going forwards.

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Self closing nested spoliers’ is closed to new replies.