• Resolved Benbodhi

    (@benbodhi)


    Hey,

    This is a cool plugin! I literally just wrote one very similar myself and stumbled upon this while looking for accordion menu plugins.
    This plugin by default enables a “toggle” menu, not an “accordion” menu, where toggles can be opened and closed independently and accordions close all others when a new one is clicked.
    I was hoping for an easy setting to switch between modes but can’t seem to find anything like that.

    https://wordpress.org/plugins/wpb-accordion-menu-or-category/

Viewing 1 replies (of 1 total)
  • Plugin Author WpBean

    (@wpbean)

    Hi,

    Good to know you like this plugin.

    Actually when we release this plugin first time it was like this as it now here. Some customers what the same feature you are wondering. So I added the feature in the premium version but didn’t got time to add in the free version here.

    It’s very simple, all you have to do is, replace the parent menu href with #, so that it will look like href=”#”. After that if you click the parent menu it self it will open the accordion.

    For menu it you able to write a custom walker class you can do this.

    Here a example code : https://gist.github.com/wpbean/580d977cf5a2d0619cf0ffc8e9a3399b

    Just add this code in inc/wpb-wmca-functions.php here.
    After that go to inc/wpb-wmca-shortcodes.php this file and open this file. On line number 132 replace ‘walker’ => ” with ‘walker’ => new WPB_WMCA_Nav_Walker,

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Toggle / Accordion’ is closed to new replies.