Accordion
-
Can anyone share the process for coding a simple accordion? Or can anyone point me in the direction of a proper tutorial? I've tried to figure this out a few times and cannot seem to crack it. Thanks in advance for any help!
-
Dear @mrrpringle
Maybe in the forum already asked that question and got an answer :-)
Here is a pretty good tutorial for an accordeon with jQuery:
https://css-tricks.com/snippets/jquery/simple-jquery-accordion/But in the end this here is the key:
$('.accordeon-child-button').on('click', function () { $(this).parent().toggleClass("accordeon-child-open"); })
Please note this:
http://laytheme.com/documentation.html#custom-javascriptBest!
Marius
I don't answer or check forum DMs, please just post on the forum.
Before you post:
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. Now see if your problem solved itself
5. Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it