TOPIC: K2 Accordion Collapse by Default

K2 Accordion Collapse by Default 8 years 4 months ago #7960

  • modum
  • modum's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Please see attached image. The initial item is currently expanded. I tried to modify in the mod_k2_content/accordion defult file, but it does not affect the module.

This image is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.

K2 Accordion Collapse by Default 8 years 4 months ago #7966

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2284
  • Thank you received: 998
  • Karma: 121
Hi,

If you want closed all items as default then you can edit file: templates/ot_clinical/html/mod_k2_content/accordion/default.php

then remove this code:
<?php echo $key==0 ? ' active' : ''; ?>
on line 23

and
<?php echo $key==0 ? ' in' : ''; ?>
on line 32.

Best Regards
The administrator has disabled public write access.
The following user(s) said Thank You: modum

K2 Accordion Collapse by Default 8 years 4 months ago #7969

  • modum
  • modum's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
That did the trick. Thanks!
The administrator has disabled public write access.
Time to create page: 0.109 seconds