Sorry for late reply and we are really great-full you like this . if you close first item you need to modify.
Open xpert-tab/shortcode/accordion.php and change
$class = ( $count === $newFlag ) ? 'in' : ''; to
$class = ( $count === $newFlag ) ? '' : '';
just remove in now save and exit.
I think now it works!. if possible please give feedback :).
I had the same question, Masaud, and that PHP edit fixed it – my accordion is now closed by default. Thank you for a great plugin!
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
The problem with that solution is that when the plugin is updated then that will be lost.
@masud_cse Does your plugin add the accordion code via add_filter( 'the_content, ... )? I’ve not looked yet but adding another filter later should accomplish the same result safely.
Thank you for the solution Masud! I also appreciate Jan’s suggestion, as it’s a pain forgetting that you edited a plugin and then losing the changes with an update (also not good to ignore updates because you don’t want to lose changes).