Thread Starter
dweeb
(@dweeb)
oops, forgot the test page address..
http://www.juhlaverstas.fi/testi/
Plugin Author
Baden
(@baden03)
Hello! first of all your theme is loading in it’s own jQuery, and it’s an outdated version.
<script type='text/javascript' src='http://www.juhlaverstas.fi/wp-content/themes/juhla030614/jquery.js?ver=3.9.1'></script>
jQuery v@1.8.1 jquery.com
Does the collapse work in the standard theme? This will at least confirm if it’s an issue with your active theme.
Next, if you are using this in your Contact Form 7 form, and having this inserted via shortcode, jQuery might not know what to do with it. Try using the roll-your-own method described in the documentation.
Thread Starter
dweeb
(@dweeb)
Okay..
changing the theme didn’t work, but the roll-your-own worked (at least the example from the documentation did)..
so I’m gonna see if I can tweak it to work with my needs 🙂
Thanks for the help!
Plugin Author
Baden
(@baden03)
Right on! Looks like that pointed you in the right direction.
Issue marked as resolved. Don’t forget to vote for pedro!
Thread Starter
dweeb
(@dweeb)
Hi, I got it to work pretty good, but one question:
it collapses my first example, but not the second one.
And if I click the second headline, it opens (also) the first one..? Or if I click the last one, it opens all?
Is there a way to make many collapsable sections (now I have 3, need 4-6) so that all are originally collapsed, so the page would look short and sweet..? So I could open only one at a time and others would stay “shut”?
http://www.juhlaverstas.fi/testi
Plugin Author
Baden
(@baden03)
you have to have unique id’s
it seems you have everything set to donkey2
can you paste two examples of your shortcodes? Just the opening tags, please.
Thread Starter
dweeb
(@dweeb)
Yay!
I changed the id’s to unique and it works! Thanks!
I’m really not good with these things so I just copypasted the code..
Plugin Author
Baden
(@baden03)
You are learning well, young Padawan.