Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accordion #28

Open
pixcase opened this issue Jul 24, 2019 · 1 comment
Open

Accordion #28

pixcase opened this issue Jul 24, 2019 · 1 comment

Comments

@pixcase
Copy link

pixcase commented Jul 24, 2019

Hey,

to add an Accordion you have to,

  1. add an ID in line 457 to <ul id="accordion" class="catlist-nslist">
  2. add jquery to the head in the of main.php of your template (I use basic template)
  3. 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.
  4. add ul#accordion { display:none; } to your custom.css

I'm not an professional, but it work for me fine.


Did you can add this feature to the new update?

Kind Regards #

@xif-fr
Copy link
Owner

xif-fr commented Jul 31, 2019

I will rework a bit what you've done, but this seems promising.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants