Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #58268

    Support
    Member

    Hey Javi, Implantacion,

    First Javi, it seems that the quotes you are using for the javascript are what makes it bugging, please try by copy and pasting the code(yes it’s the same but the quotes are the good ones) as is in the customizer.

    
    jQuery(function($){
      $('.x-accordion-toggle').click(function(){
        $('.accordion-body').not( $(this).attr('href') ).collapse('hide');
      });
    });
    

    Let us know if this work better(it should as after testing it in the console it was working great)

    Implantacion, it seems that the multiple accordions are all opening one panel at the same time, it might be because they all have the same class, would you mind trying to them a different class and let us know how this work for you.

    Thank you guys, cheers.

    #58721

    Javi S
    Participant
    This reply has been marked as private.
    #58949

    Implantacion
    Participant

    Hi!

    I´ve changed all the accordion each a different class, and even erase all classes. And the only difference is that, instead of leaving the one that I´d click closed (and opening all of the rest) it would open all of them…

    #59368

    Rad
    Moderator

    Hi Javi,

    Using X 2.0.1 and X shortcode 2.3.1 , your shortcode works on me without even using the given javascript. Could you update to these version?

    @Implantac, could you post your shortcode too? And please update your copies too.

    Then be sure you turned off and deleted your caches.

    Let us know.

    #60389

    Javi S
    Participant

    As far as I know, I have runnning X 2.0.1 and X shortcode 2.3.1. (I have checked it)

    I can find this issue over Chrome 30.0.1599.101 and Firefox 30.0, both for Mac.

    What can we do?

    Thanks again.

    #61029

    Alexander
    Keymaster

    Hi Javi,

    I’ve checked your site and it seems just fine to me on a Mac with the same browsers. This thread is getting kind of long and with many voices. Perhaps we’re not seeing things in the same light. Would you mind giving your own explaination of how you’d expect this to work?

    For me, each accordion item is working ok, and clicking one closes others.

    #61595

    Javi S
    Participant
    This reply has been marked as private.
    #61919

    Alexander
    Keymaster

    Hi Javi,

    Thank you so much for the clarification. I can see what’s happening now. The above code will work just fine, but only if you don’t have one open by default. This changes the state of things, and is why they all open at once if you click on the item that’s already open.

    Right now we don’t have a solution that handles both use cases, but as stated earlier in this thread something that will be investigated by our developers. Thank you for understanding. Take care!

    #63004

    Javi S
    Participant

    So, how can we have a working accordion?

    Only one item opened at a time. You say this is possible in your documentation (http://theme.co/x/demo/renew/1/shortcodes/accordion/). But nobody told us how to do it.

    We sent this screencast twice where (I think) the issue is visible but we got no valid solution.
    What should we do?

    Thanks a lot.

    #63357

    Christian
    Moderator

    Hey Javi,

    Please remove the ID from the accordion shortcode and remove the parent_id attribute from accordion item like

    Your text here

    Your second accordion text

    Your third accordion text

    Please remove the javascripts given above because there’s no need for it. Also review our Accordion walkthrough at http://theme.co/x/member/kb/shortcode-walkthrough-accordion/

    That works in our demo.

    Thanks.

    #172370

    trini809
    Participant

    This issue seems to have resurfaced again, I upgraded to Version 2.6.1 of the Shortcodes and now when I create a new page with an accordion I am experiencing the same issue described here. Strange thing is that the previous pages that has an accordion is still working fine. Any suggestions?

    #172375

    trini809
    Participant

    Please ignore my last post, there’s was a X upgrade available and that fixed my isssue. Thanks ~

    #172480

    Christian
    Moderator

    Glad you’ve sorted it out.