I think I figured out…!!!
The solution was somehow hidden behind the workaround in order to get the two level spoiler to work properly. On the WP SU Settings -> Examples, under Advanced Examples on the Nested shortcodes section, it says that to go down a level (i.e. to have a shortcode nested inside another), you should insert an underscore right after the opening and closing tags’ brackets on every sub-level spoiler.
As you may noticed, this ins’t working as it should, and (as @nightl kindly suggested here: https://www.ads-software.com/support/topic/nested-accordions/) you have to maintain the underscore at the closing tag but to skip the one at the opening tag. So I thought… what’s the difference between base level shortcode and sub-level 1 shortcode coding?…: an underscore added at the closing tag. So I told myself, what if I add a second underscore at the sub-level 2 shortcode closing tag? and… voilá! It worked! ??
I even tried with a 3 sub-level structure and it works just fine (below is a 3 level working example). I didn’t tried further sub-levels since I don’t need to achieve that on my site, so I’ll left that to you… ??
Here the working solution:
[su_spoiler title=”Base level Title” icon=’plus-square-1′ style=”fancy”]
Some text
[su_spoiler title=”Sub-level 1 Title 1″ icon=’plus-square-1′ style=”fancy”]
Some text
[_/su_spoiler]
[su_spoiler title=”Sub-level 1 Title 2″ icon=’plus-square-1′ style=”fancy”]
Some text
[su_spoiler title=”Sub-level 2 Title” icon=’plus-square-1′ style=”fancy”]
Some text
[su_spoiler title=”Sub-level 3 Title” icon=’plus-square-1′ style=”fancy”]
Some text
[___/su_spoiler]
[__/su_spoiler]
[_/su_spoiler]
[/su_spoiler]
Enjoy! ??
-
This reply was modified 7 years, 5 months ago by Ratalinux.
-
This reply was modified 7 years, 5 months ago by Ratalinux.