• Resolved itaushanov

    (@itaushanov)


    Is there a way to create nested spoilers, one within another?

    I’ve tried to use:

    [spoiler title="Spoiler1" style="default"]Hidden content
    [spoiler title="Spoiler2" style="default"]Hidden content 2[/spoiler][/spoiler]

    and

    [spoiler title="Spoiler1" style="default"]Hidden content
    [spoiler title="Spoiler2" style="default"]Hidden content 2[/spoiler]

    but both does not seem to do the trick.
    Any clues?

    https://www.ads-software.com/plugins/shortcodes-ultimate/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Vova

    (@gn_themes)

    Use underscores for nested spoilers

    [spoiler]
       Parent spoiler
       [_spoiler] Nested spoiler [_/spoiler]
       [_spoiler] Nested spoiler [_/spoiler]
    [/spoiler]
    Thread Starter itaushanov

    (@itaushanov)

    That did it, thanks for the speedy answer and the really useful plugin.

    Does this work in compatibility mode?

    I didn’t manage to get it right, but I might miss something. What I use is:

    [su_spoiler title="Parent"]
          Parent Content
          [_su_spoiler title="Nested spoiler"] Nested spoiler [_/su_spoiler]
          [_su_spoiler title="Nested spoiler"] Nested spoiler [_/su_spoiler]
    [/su_spoiler]

    This is the live version:
    https://juridikibutik.se/niklas-work-page/.

    An update to my previous post.

    It does work in compatibility mode. I found a conflicting shortcode in my theme that caused it to fail.

    Great plugin, great work!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Nested spoilers’ is closed to new replies.