jquery ui accordion wordpress

Add the jquery code to the Jquery ui plugin $( “#accordion” ).accordion();

So the javascript looks like…

jQuery(document).ready(function($) {
  $( ".accordion" ).accordion();

And then display accordion using divs and h3’s

More on customising the accordion here

First header

First content panel

Second header

Second content panel
Print Friendly

Leave a Reply

Your email address will not be published. Required fields are marked *