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

Leave a review

exclamation-circle mod_latestnewsenhanced accordion layout

  • bfahy@fdicreative.com
  • bfahy@fdicreative.com's Avatar Topic Author
  • Offline
More
3 weeks 12 hours ago #6132 by bfahy@fdicreative.com
mod_latestnewsenhanced accordion layout was created by bfahy@fdicreative.com
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
3 weeks 11 hours 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: bfahy@fdicreative.com

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!