If you would also like to close the accordion in DIVI Divi is a WordPress theme and has great features. With this theme you hardly need any additional plugins in WordPress! Official website of Divi completely, this code will help you:
<script>
jQuery(function($){
$('.et_pb_accordion .et_pb_toggle_open').addClass('et_pb_toggle_close').removeClass('et_pb_toggle_open');$('.et_pb_accordion .et_pb_toggle').click(function() {$this = $(this);setTimeout(function(){$this.closest('.et_pb_accordion').removeClass('et_pb_accordion_toggling');},700);});});</script>
You can insert the code here:
Dieser Beitrag ist auch verfügbar auf: Deutsch (German)