OnPoint Plugins

  • Plugins
    • Advanced Sidebar Menu
      • Basic Version
        • Documenation
        • Usage
        • Developer Docs
      • PRO Version
        • Demo
        • Usage
        • Developer Docs
    • Go Live Update Urls
      • Basic Version
        • Documenation
        • Usage
        • Troubleshooting
      • PRO Version
        • Demo
        • Usage
        • URL History
  • About
    • Services
  • Blog
  • Contact
  • Support
  • Log In
← Back to support

Only one accordion block open at a time

Resolved

Requested: 6 years and 2 months ago

Hi,

Is it possible to hide one item’s children once another is clicked? So that the accordion doesn’t get too big if the user clicks a lot of the parent items?

Thanks in advance!

 

Plugin: Advanced Sidebar Menu

  1. Avatar for OnPoint PluginsOnPoint Plugins

    6 years and 2 months ago

    Hi Ricardo,

    Closing one section of the accordion when another is opened is possible by tapping into this plugin’s existing functionality.

    This may be accomplish with a little custom JavaScript:

    One way to put this on your site is to add the following action to your active theme’s functions.php file:

    Note: This version of the custom JavaScript will only target the first level child accordions.

    Have a great night!

    Mat Lipe

  2. Avatar for geralgeral

    6 years and 2 months ago

    Hi Mat!

    It works perfectly 😀

    Thank you so much for your help and quick response!

    Kind regards,
    Carina

     

© 2026 · WordPress Development · Terms Of Service · Privacy Policy · Cookie Policy · Log in

  • Plugins
  • Blog
  • Contact