To turn off individual menu items and remove the accordion effect you can use the “Class Disable” field in the widget control panel.
Widget Control Panel
Enter a class name that you will use to identify the menu items – e.g. menu-disable – note class names must not contain spaces and only use special characters “-” or “_”.

WordPress Menu Admin
Go to the WordPress menu admin page Admin –> Appearance –> Menus and select the menu you are using for the accordion menu plugin.
Screen Options
By default the menu page settings do not automatically show the CSS Class field in the menu item editor. To enable this click on the “Screen Options” tab in the top right-hand corner of the page and in the slide down panel section, heading “Show advanced menu properties”, check the “CSS Classes” checkbox and then click the “Screen Options” tab to close the panel.

Menu Item Editor
Now if you click on one of the menu items and expand its option box in the menu editor you should see an additional text field labelled “CSS Classes (optional)”. For each of the menu items you wish to disable enter the CSS class that you added to the “Class Disable” field in the widget control panel.

Now just save the menu. All of the links now using the disable class should no longer behave like an accordion and will automatically be expanded when the page loads. Child sub-menus will still have the accordion effects though.


















Hi Lee
Fantastic plugin!
Following on christele’s query, is it possible to when disabling certain parent menu items, to only disable them on specific pages?
Thanks, Ben
Hi,
Only using the disable class and then creating a menu which adds the relevant class for the specific pages
Hi Lee, thanks for a great plug-in! I’ve been asked to have the menu expand completely on page load but still function as an accordion – please can you let me know how to do this? Thanks a lot!
Hi,
the plugin doesnt have that feature. You would have to add additional jquery code to expand the menus after loading or you could add class “active” to all menu items and the plugin would then automatically expand these sub-menus
Thanks for the quick reply and your help
By the way, you should have like a donation item on your website:)
Hi,
There are donation buttons on each of the plugin pages
oops did not c those:)
Thank you Thank you Thank you Thank you Hopefully I will make it!
Christele
Thank you so much Lee!!! but I think I am targeting for a way more complicated layout:( Indeed, my client would like to create something similar to :http://www.strongmail.com/resources/blogs/email-marketing-insights/ which means I am going to have to figure out how to pull the correct secondary menu items depending on the page you are visiting
Your widget is fantastic, but I feel like I might need to find a new widget to achieve this
for a beginning that is definitely getting tough… if you have any ideas I WOULD REALLY APPRECIATE
Good morning lee,
I followed the steps you had provided above, and created a class:
.menu-disable{
display: none;
visibility:hidden;
}
I have my menu items showing on the main nav implemented in a megamenu and on the sidebar implemented in the accordion menu.
When using the above my menu items do not show in both places?
Thank you
Christele
Hi,
The instructions in the FAQ are to just disable the accordion effect – i.e. the menu item will be “open”.
Are you wanting to actually hide the menu items?
Lee,
I apologize, I was trying to hide menu items that I did not need in the accordian, but I needed in the megamenu; I misunderstood the options above… Do you have any ideas?
Thank you again,
Christele
Hi,
You can use what you have already set up and just change the CSS selector so it only targets the accordion menu:
.dcjq-accordion .menu-disable{ display: none; visibility:hidden; }Hi,
You can either allocate different classes to the menu item groups or if the items that you want showing are basically just the sub-menus of the current page then you can use WordPress’ built-in CSS classes, which will identify the parent menu item (current-parent-item) as well as the current-menu-item (plus a few others).
You can then use these to hide/show the sub-menus