OnPoint Plugins

  • Plugins
    • Advanced Sidebar Menu
    • Go Live Update Urls
  • About
    • Services
    • Showcase
  • Blog
  • Contact
  • Support
  • Log In
← Back to support

Only one accordion block open at a time

Resolved

Requested: 2 years and 9 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. OnPoint Plugins

    2 years and 9 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. geral

    2 years and 9 months ago

    Hi Mat!

    It works perfectly 😀

    Thank you so much for your help and quick response!

    Kind regards,
    Carina

     

New Response Cancel reply

You must be logged in to respond. Only PRO members are allowed to respond to support requests.

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

  • Plugins
  • Blog
  • Contact