Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

exclamation-circle mod_latestnewsenhanced accordion layout

More
2 weeks 4 days 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.

Please Log in or Create an account to join the conversation.

More
2 weeks 4 days ago #6133 by syw
Replied by syw on topic mod_latestnewsenhanced accordion layout
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]

Please Log in or Create an account to join the conversation.

Free Extensions Support Membership
$12 $9.95
  • 3 months personal help
  • support future developments
  • 30% renewal discount
Sign up now!
Extensions bundle license
$317.70 $119
  • 12 months support (forum & email)
  • 12 months updates
  • all free & pro extensions
  • unlimited sites
  • 30% renewal discount
Get the deal!