-
AuthorPosts
-
June 19, 2014 at 5:34 am #58268
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.
June 20, 2014 at 4:48 am #58721This reply has been marked as private.June 20, 2014 at 2:04 pm #58949Hi!
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…
June 21, 2014 at 9:11 pm #59368Hi 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.
June 24, 2014 at 8:49 am #60389As 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.
June 25, 2014 at 12:04 pm #61029Hi 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.
June 26, 2014 at 12:14 pm #61595This reply has been marked as private.June 27, 2014 at 12:58 am #61919Hi 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!
June 30, 2014 at 4:50 am #63004So, 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.
June 30, 2014 at 8:38 pm #63357Hey Javi,
Please remove the ID from the accordion shortcode and remove the parent_id attribute from accordion item like
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.
December 28, 2014 at 4:48 pm #172370This 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?
December 28, 2014 at 4:56 pm #172375Please ignore my last post, there’s was a X upgrade available and that fixed my isssue. Thanks ~
December 28, 2014 at 10:39 pm #172480Glad you’ve sorted it out.
-
AuthorPosts