This members-only tutorial provides the steps to apply jQuery Collapse script to display toggles that collapse other panels automatically when one is opened in Oxygen so that only one remains open at any given time.

Update: Near the end of the tutorial you'll find instructions to add + and - indicators for the closed and open states.

Step 1

Let's load jQuery Collapse conditionally i.e., only where it is needed.

Install and activate My Custom Functionality plugin.

Connect to your hosting account using a FTP client and navigate to site's /wp-content/plugins/my-custom-functionality-master.

Upload jquery.collapse.js to the plugin’s assets/js directory.

Edit plugin.php and add the following inside the custom_enqueue_files() function:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($37/month or $399 one-time).

Already a member? Log in below or here.

Need help implementing a tutorial in your site or want to hire me for custom work?


Find the article helpful and wish to donate?



For adding code blocks wrap the code in three backticks. Markdown should work.
Provide a URL of your site/webpage if something is not working.

4 comments on “Accordions in Oxygen using jQuery Collapse”

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: