zedx
asked 11 years ago

just like the Dribbble One . i want it default close how to set up

3 Answers
Jackie Lord
answered 11 years ago

In order to set default close for the Accordion block, open file widgets.php in /wp-content/themes/dw-minion/inc/ Find the line 208:

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

replace with

$collapse = 'collapsed';

Hope this helps!


answered 11 years ago

great! Thank you vevy much .

By the way,how to default open  for the first Accordion block and close for the second and third one ?

Jackie Lord
answered 11 years ago

The default code for this Accordion:

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

This code will get the first one open and close the second and third one.

Our new code is to get all close as new default.

I hope this is clear for you.

Powered by DW Question & Answer Pro