Accordion.min.js how to setup

My goal is to use the UI jquery accordion.min.js. How do i setup a accordion?

Hello Tony,

  1. Please install and activate Insert Headers and Footers plugin that will allow you to insert JavaScript (jQuery) code.

  2. Go to your Dashboard → Settings → Insert Headers and Footers → add the following code to Scripts in Header section, and click Save button.

<link rel="stylesheet" href="//">
<script src=""></script>
  1. Add a Custom HTML widget and insert something like this HTML code as its content:
<div id="accordion">
  <h3>Section 1</h3>
    Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
    ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
    amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut
    odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
  <h3>Section 2</h3>
    Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
    purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor
    velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In
    suscipit faucibus urna.
  <h3>Section 3</h3>
    Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis.
    Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero
    ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis
    lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.
      <li>List item one</li>
      <li>List item two</li>
      <li>List item three</li>
  <h3>Section 4</h3>
    Cras dictum. Pellentesque habitant morbi tristique senectus et netus
    et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
    faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
    mauris vel est.
    Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus.
    Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
    inceptos himenaeos.

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

take a look at the accordion on this page:

The last accordion–success stories–has the biggest height window when expended. all the other accordion sections take up the same space when expanded. In other words, when you expand “home visitation” it takes up much more space then the text. How can i get the expanding height of the accordion to only open to how much content is present?


Please create a new topic for your issue to keep forum in good order and make it easier to help you. I’ll close this topic to avoid confusion.

Kind Regards, Roman.