• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: How to close the firt title in accorion

How to close the firt title in accorion 5 years 2 months ago #38754

  • tothjoci
  • tothjoci's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
RSPageBuilder opens the first item of the accorion. How can I close by default all items of the accorion?
The administrator has disabled public write access.

How to close the firt title in accorion 5 years 1 month ago #38888

  • dragos
  • dragos's Avatar
  • OFFLINE
  • Administrator
  • Posts: 559
  • Thank you received: 102
Hello,

This can be achieved by performing a template override for the accordion element. You will have to perform the following steps:

- copy the "accordion.php" file from the following location:

\components\com_rspagebuilder\layouts\elements\bootstrap2\accordion.php (bootstrap2 or bootstrap3 depending on what you are currently using)

into:

templates\your_template_name\html\layouts\com_rspagebuilder\elements\bootstrap2\accordion.php

- edit the copy of the file from your template and search for the following syntax:
// Collapse first item
            if ($item_index) {
                $accordion_heading    = ' collapsed';
                $accordion_body        = '';
            } else {
                $accordion_heading    = '';
                $accordion_body        = ' in';
            }

- replace it with:
// Collapse first item
        if ($item_index) {
         $accordion_heading    = ' collapsed';
         $accordion_body        = '';
        } else {
         $accordion_heading    = '';
         $accordion_body        = '';
        }
The administrator has disabled public write access.
The following user(s) said Thank You: kszgysz
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!