Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

mod_latestnewsenhanced accordion layout

More
IP: 96.95.239.193 1 year 8 months ago #6132 by [email protected]
How can I get the 1st one to always be closed like the others? Then when clicked it will open.
  • syw
  • syw's Avatar
  • Administrator
  • Administrator
More
IP: 2600:1017:a410:2823:518b:3da8:e39b:26d9 1 year 8 months ago #6133 by syw
Hello,

you have to override the module's layout in your template.
The lines to change (if using Bootstrap 5):

class="accordion-button<?php echo 0 === $i ? '' : ' collapsed' ?>"

Replace with

class="accordion-button collapsed"

And

class="accordion-collapse collapse<?php echo 0 === $i ? ' show' : '' ?>"

Replace with

class="accordion-collapse collapse"

 

Olivier.
The following user(s) said Thank You: [email protected]