Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1347843
    LumoDesign
    Participant

    Hi,

    I’ve placed the short code for an accordion list inside of an accordion.

    But when I open the accordion all the accordion inside are open. How do I change the short code so that they all stay closed until clicked on.

    The accordion is on this page http://cmr.flywheelsites.com/literature/ under [Company Literature] and then [Dealing Forms]

    I’ll post the login details in a hidden post after this.

    Wordpress 4.7.1
    Cornerstone 1.3.3
    X Theme 4.6.4

    Thanks in advance.

    Ed 🙂

    #1347849
    LumoDesign
    Participant
    This reply has been marked as private.
    #1348305
    Friech
    Moderator

    Hi Ed,

    Thanks for writing in! Please put an open="false" attribute on your [x_accordion_item] shortcode.

    e.g.

    [x_accordion]
    [x_accordion_item title="Accordion Item 1" open="false"]Add some content to your accordion item here.[/x_accordion_item]
    [x_accordion_item title="Accordion Item 2" open="false"]Add some content to your accordion item here.[/x_accordion_item]
    [/x_accordion]

    Hope it helps, Cheers!

    #1350884
    LumoDesign
    Participant

    Hi,

    I had already put in the open="false" attirbute.

    It hasn’t changed.

    I’ve noticed that you have an x_ in front of accordion like this [x_accordion] should this make a difference?

    Thanks

    Ed

    #1350983
    Rupok
    Member

    Hi there,

    Thanks for writing back. Yes new shortcodes includes preceding x_ however the old one still should work. Let’s try with x_.

    Cheers!

    #1351032
    LumoDesign
    Participant

    I did try with x_accordion on all places where accordion was but it un-embedded the the accordions out of the accordion that i have them in.

    #1351033
    LumoDesign
    Participant

    Also you have now added a full stop ??? like x_.accordion is that correct?

    #1351242
    Nabeel A
    Moderator

    Hi again,

    Sorry for the confusion. Unfortunately, nesting accordions is not supported. You’ll need to find an alternative way to display your data.

    Thank you for understanding!

  • <script> jQuery(function($){ $("#no-reply-1347843 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>