Themes: Accordion – First closed on load

Accordion - First closed on load

Last Updated: 2 months ago

Paste into Divi Options > Integration >Add code to the < head > of your blog

<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>

 

Accordion – First closed on load