Open / Close All Accordion Toggles with the Click of a Button.

The Divi Accordion module doesn't come with a way to open / close all accordion toggles at once. Here's how to add a Divi Button module which will do just that. Step 1: Add a Button Module Begin by adding a button module to your layout. This will be the button that we...

Disable Pointer / Clicking on Open Accordion Module Toggles

The default behavior of the Divi Theme's accordion module is to start with one toggle open and the rest closed. Then clicking on a closed toggle opens it and closes the originally open one. One thing you might notice is that, despite clicking on the open toggle having...

Fix PDF Embedder not Resized in Closed Accordions

The PDF Embedder plugin allows you to easily embed PDFs in your web pages. When the browser window is resized, PDF Embedder resizes PDFs to fit the new space available to them. However, when a PDF is hidden inside a closed Divi accordion module toggle, it isn't...

Open a Particular Accordion Module Item by Linking

The Divi Theme accordion module starts with the first accordion item open by default. If you'd like to be able to control which accordion item is opened when linking to the page, you can do so with the following jQuery code: <script> jQuery(function($) {...