Closed stpaultim closed 6 years ago
I believe that the fix for this is to include the "collapsed" class on LINE 11 of
views-bootstrap-accordion-plugin-style.tpl.php
- <a class="accordion-toggle"
+ <a class="accordion-toggle collapsed"
I have included it here on line 13.
9 <div class="panel-heading">
10 <h4 class="panel-title">
11 <a class="accordion-toggle collapsed"
12 data-toggle="collapse"
13 data-parent="#views-bootstrap-accordion-<?php print $id ?>"
14 href="#collapse-<?php print $id . '-' . $key ?>">
15 <?php print $titles[$key] ?>
16 </a>
17 </h4>
18 </div>
I'm using the accordion view and find that while the rows are collapsed by default, they do not get the collapsed class until they have been opened and then closed again.
I'm trying to add a Font Awesome icon to collapsed accordion panels, but they have the same classes as the uncollapsed panels, until they have been opened and then closed again.