Lynda Karr
asked 9 years ago

I am using the accordian in my sidebar. How can I change the default of that wodget from expanded to collapsed?

1 Answers
Allen
answered 9 years ago

@lynda: hi , you can go to this file : dw-focus/inc/widgets/dw-accordion-container.php:
and then go to line : 45 and 46
Change the code there from :

$collapse = ( $i == 0 ) ? 'active' : 'collapsed';
$collapse_in = ( $i == 0 ) ? 'panel-collabse-in' : '';

to :

$collapse = ( $i == 0 ) ? 'collapsed' : 'collapsed';
$collapse_in = ( $i == 0 ) ? 'panel-collabse-in' : 'panel-collabse-in';

or :

$collapse = ( $i == 0 ) ? 'collapsed' : 'collapsed';
$collapse_in = ( $i == 0 ) ? '' : '';

Glad.

freelance2
replied 9 years ago

Thanks very much.

Powered by DW Question & Answer Pro