just like the Dribbble One . i want it default close how to set up
3 Answers
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!
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 ?
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.
Please login or Register to submit your answer