WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes Ultimate
Problem with accordion inside an accordion inside a column (1 post)

  1. dude369
    Member
    Posted 4 months ago #

    Hi,

    I'm trying to create an accordion inside another accordion and then use this inside a column. The content page I'm using has 2 columns.

    Below is the code I'm using:

    [su_row]
    [su_column size="3/4" class="column_main"]
    Main content:
    [su_accordion]
    [su_spoiler title="Location1" style="fancy"]
      [_su_accordion]
        [_su_spoiler title="Department 1" style="fancy"] Spoiler content [_/su_spoiler]
        [_su_spoiler title="Department 2" style="fancy"] Spoiler content [_/su_spoiler]
        [_su_spoiler title="Department 3" style="fancy"] Spoiler content [_/su_spoiler]
      [_/su_accordion]
    [/su_spoiler]
    [su_spoiler title="Location2" style="fancy"]
      [_su_accordion]
        [_su_spoiler title="Department 1" style="fancy"] Spoiler content [_/su_spoiler]
        [_su_spoiler title="Department 2" style="fancy"] Spoiler content [_/su_spoiler]
        [_su_spoiler title="Department 3" style="fancy"] Spoiler content [_/su_spoiler]
      [_/su_accordion]
    [/su_spoiler]
    [/su_accordion]
    [/su_column]
    [su_column size="1/4" class="column_sec"]
    Secondary content:
    [/su_column]
    [/su_row]

    If I remove all the row and column codes, I have a working accordion with 2 levels like I want and if I remove the level 2 accordion I have the main accordion inside the column like I want. The problem seems to be putting it all together.

    Also I have tried switching the column codes to inside the main accordion and it works (I get the main acordion with full width and the nested accordion with the column size), although it is not what i need.

    Picture with what I'm getting with my code and below the working accordion but without the column:
    http://i326.photobucket.com/albums/k418/dude369/1_zps0895de6c.jpg

    Thank you for any help you can provide.

    https://wordpress.org/plugins/shortcodes-ultimate/

Reply

You must log in to post.

About this Plugin

About this Topic