add an ID in line 457 to <ul id="accordion" class="catlist-nslist">
add jquery to the head in the of main.php of your template (I use basic template)
and <script type="text/javascript"> $(document).ready(function(){ $(".catlist-nshead").click(function(){ // trigger $(this).next("ul#accordx").slideToggle("fast"); // blendet beim Klick auf "dt" die nächste "dd" ein. $(this).children("a").toggleClass("closed open"); // wechselt beim Klick auf "dt" die Klasse des enthaltenen a-Tags von "closed" zu "open". }); }); </script> too.
I try to add this to script.js file, but it doesn't work.
add ul#accordion { display:none; } to your custom.css
Hey,
to add an Accordion you have to,
<ul id="accordion" class="catlist-nslist">
<script type="text/javascript"> $(document).ready(function(){ $(".catlist-nshead").click(function(){ // trigger $(this).next("ul#accordx").slideToggle("fast"); // blendet beim Klick auf "dt" die nächste "dd" ein. $(this).children("a").toggleClass("closed open"); // wechselt beim Klick auf "dt" die Klasse des enthaltenen a-Tags von "closed" zu "open". }); }); </script>
too. I try to add this to script.js file, but it doesn't work.ul#accordion { display:none; }
to your custom.cssI'm not an professional, but it work for me fine.
Did you can add this feature to the new update?
Kind Regards #