Updated: 18th January 2012

This plugin allows you to easily create multiple jquery vertical accordion menus using the custom menus function, available in WordPress 3.0.
The accordion menu can handle any number of sub-menus and features include the option to select either “hover” or “click” to activate the menu, add a count showing the number of links under each menu item & auto-expand menu based on the current page.
Demo Accordion Menu
Demo – WordPress Vertical Accordion Menu Plugin
Download The Plugin
Download JQuery Accordion Menu Widget 3.1.1 (56,194)
Installation
- Upload the plugin through ‘Plugins > Add New > Upload’ interface or upload ‘jquery-vertical-accordion-menu’ folder to the ‘/wp-content/plugins/’ directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- If you dont yet have a custom menu, create one in the Menu area.
- In the widgets section, select the jQuery accordion menu widget and add to one of your widget areas
- Select one of the available custom menus from the dropdown list
Your theme must be able to support custom menus
Useage
Accordion menus can be added to your site using either widget areas or shortcodes (available starting version 3.0)
Before you can configure the accordion menu you require a WordPress custom menu – either use an existing menu or set one up via the menu option in WordPress admin.
Note: that in order for the accordion effect to work the menu must have at least 2 levels.
Create Your Vertical Accordion Menu Using Widgets
Either use an existing widget in your WordPress theme or create a new widget area in the required location.
For more information on how to add a new widget to your WordPress theme see our follow up WordPress tutorial – “Adding A Widget Area To Your Theme Files”.
To create your accordion menu drag the jQuery Accordion Menu widget to the widget area and select your custom menu from the drop down menu.
Configuring Your Accordion Menu Widget
The widget has several parameters that can be configured to help cutomise the vertical accordion menu:
Click/Hover
Selects the event type that will trigger the menu to open/close
Note: care should be taken when selecting the hover event as this may impact useability – adding a hover delay and reducing the animation speed may help reduce problems with useability
Auto-close open menus
If checked this will allow only one menu item to be expanded at any time. Clicking on a new menu item will automatically close the previous one.
Save menu state (uses cookies)
Selecting this will allow the menu to remember its open/close state when browsing to a new page.
Auto Expand Based on Current Page/Item
If selected the menu will use the inherent WordPress menu system for identifying the users current page and automatically expand the sub-menus. Useful if users browse to pages via other links.
Disable parent links
If selected, any menu items that have child elements will have their links disabled and will only open/close their relevant sub-menus. Do not select this if you want the user to still be able to browse to that item’s page.
Close menu (hover only)
If checked the menu will automatically fully close after 1 second when the mouse moves off the menu – only available if event type is “hover”
Show Count
Check this box to display a count of the number of links under each menu heading.
Class Menu
If you want to create your own skin and have more control over the menu styling you can enter your own CSS class name. If you are unsure about this setting or want to use the default WordPress class (menu) leave this field blank.
Class Disable
Input the CSS class of any parent menu items that you want to disable – e.g. if you add a custom CSS class of “menu-disable” in the WordPress menu editor page to a menu link that you dont want open/close then enter “menu-disable” in this field.
Leave the field blank if you want all menu items to use the accordion features.
Hover delay
This setting adds a delay to the hover event to help prevent the menu opening/closing accidentally. A higher number means the cursor must stop moving for longer before the menu action will trigger.
Animation Speed
The speed at which the menu will open/close
Skin
Several sample skins are available to give examples of css that can be used to style your accordion menu.
Create Your Vertical Accordion Menu Using Shortcodes
The minimum requirement for adding a menu using a shortcode is to include the name of the menu that you want to use for the vertical accordion – the name must match one of the menus created in the WordPress menu admin page.
To add a menu using shortcodes use the following code:
[dcwp-jquery-accordion menu="Test Menu"]
The above shortcode would add the menu “Test Menu” with the default accordion settings (see below)/
Optional shortcode parameters for customising the menu (refer to widget settings above for information):
- event – click/hover (default = click)
- auto_close – true/false (default = false)
- save – true/false (default = false)
- expand – true/false (default = false)
- disable – true/false (default = false)
- close – true/false (default = false)
- count – true/false (default = false)
- menu_class – optional (default = menu)
- disable_class – optional (no default)
- hover – 600
- animation – slow/normal/fast (default = slow)
- skin – black/blue/clean/demo/graphite/grey (default = No Theme)
Example of custom menu using shortcodes
To add an accordion menu using the “hover” event, save state on, parent links disabled, include count of child links and auto-expand to show current page:
[dcwp-jquery-accordion menu="Test Menu" event="hover" save="true" disable="true" count="true" expand="true"]
Using shortcodes in template files
See FAQ – Adding an accordion menu using shortcodes to your template files.
Creating A Custom Skin
For a blank CSS template and more information on how to create a custom skin for this plugin see FAQ – Creating a custom skin for the wordpress jQuery vertical accordion menu plugin.
Frequently Asked Questions
Please refer to our FAQ pages for the jQuery Verticall Accordion Menu Plugin for a complete list of questions and answers.
Many issues that can crop up with installing and using the plugin with different themes have also been covered in our comments section. Please also check previous comments and FAQ for further information/tips.
For plugin customisations or additional support please contact us for a quotation.
Demo Accordion Menu
Demo – WordPress Vertical Accordion Menu Plugin
Download The Plugin
Download JQuery Accordion Menu Widget 3.1.1 (56,194)
Feedback
If you find this plugin useful please rate it at wordpress.org.
Donate
We develop & support all of our plugins for free. If you use this plugin and find it useful please consider a donation as a token of your appreciation
Updates
Version 3.1 – 18th January 2012
- Fixed: Auto-close bug
Version 2.6 – 19th June 2011
- Added: Ability to set menu CSS Class – default “menu”
- Added: Ability to disable parent menu items using a CSS class
- Update: Revision to auto-expand system
- Update: jquery plugin version – jquery.dcjqaccordion.2.8.js
Version 2.5.4 – 25th May 2011
- Fixed: Bug with save state option.
Version 2.5.3 – 23rd May 2011
- Update: jQuery Accordion Menu plugin includes check to see if cookie plugin exists.
Version 2.5.2 – 20th May 2011
- Update: Using updated jQuery Accordion Menu plugin – fixed bug with count.
Version 2.5 – 7th Apr 2011
- Added: Auto-expand no longer requires the “Save State” option to be selected.
Version 2.4 – 24th Mar 2011
- Added: Auto-expand option for menu to expand sub-menus based on users current page.
Version 2.3 – 21st Mar 2011
- Edit: Cufon fonts can now be used in the accordion menu
Version 2.2 – 16th Feb 2011
- Added: Option to show count of number of child links
- Edit: Fixed cookie problem with multiple menus
Version 2.0 – 26th Feb 2011
- Added : Ability to select either hover or click to activate menu
- Added : Hover delay setting for hover event
- Added : Close menu option for hover event
Version 1.1 – 20th Feb 2011
- Fixed : Duplicate ID with themes adding ID to widget container
- Fixed : Set cookie path
Screenshots

Widget in edit mode

Sample vertical accordion menus
For alternatives to the vertical accordion menu check out our Vertical Mega Menu Plugin or the Drill Down iPod Style Menu Plugin. For more information and tips on the best type of vertical menu plugin to use refer to – Choosing a Vertical Menu WordPress Plugin For Your Site.


















Hi Lee,
first of all, thank you very much for your plugin, I´ve looked for similar a long time.
My problem is internet explorer 8
http://2011.stadler-makler.de
while loading the page, the plugin seems to get deactivated, the whole menu structure appears, until page is fully loaded.
no problems with mozilla and chrome. maybe a ‘document ready’ problem? do you have any idea to fix?
thank you
stefan
Hi,
Its probably the menu loading before the jQuery has had chance to initialise. There are possible fixes using CSS and hiding sub-menus in previous comments you can try out
Thank you for this amazing plugin!
I was wondering if there is a way to set the menu to always open to a certain tab on page load by default no matter what page you are on?
Example: http://beta.statestreetdigital.com/accordian-menu/
I would like the “Mortgages” tab to always be opened on page load even on other pages, then the user can collapse/expand as they wish.
Thanks again!
Hi,
You can use the “Class Disable” option to turn off part of the menu. This will ensure that the sub-menu items are always expanded
I created a menu with links and sublinks but my menu will not expand/collapse. I used the links from my Categories menu, rearranged them, then dragged some to the right to created sublinks. The items that should be sublinks appear as regular menu links. I’m running WP 3.2.1 on a Mac on a localhost (if that helps). I’m sure I’m missing something on my end so any help you could provide would be greatly appreciated. Thanks.
Hi,
It sounds like a jquery error. check the following FAQs for more info and possible solutions:
http://www.designchemical.com/blog/index.php/faq/i-get-the-error-message-error-jquery-dc-jqaccordion-widget-3-item-menu-dcaccordion-is-not-a-function/
http://www.designchemical.com/blog/index.php/faq/the-menu-appears-on-the-page-but-does-not-work/
http://www.designchemical.com/blog/index.php/faq/adding-jquery-to-your-theme-files-using-wp_enqueue_script/
Hi Lee.
Thank you very much for your plugin. Though I’m struggling with it real bad.
I’m using the minimalist theme in WordPress and have a widgedized left sidebar. So far so good. I’m not using any other widgets on my side at the moment. When I use your plugin it appears in my left sidebar. The only thing I see there is my widget name. When I click it collapses and I get my menu structure. Without collapsing, everything (also level 2) is visible. It works but not dynamically. Also when I apply a skin it doesn;t show.
I think something is wrong within my functions but can’t figure out what.
Can you please help me.
Do you have a link to the page?
Hi there, this looks like a wonderful menu widget. Its perfect. Unfortunately I’m not able to get it to work right.
Would you be willing to help me?
My main menu up top is created by a plugin called Ubermenu, but I also want a menu in the sidebar of other links and I want it to behave like an accordian.
When I insert the jquery accordian widget in my sidebar, instead of behaving like an accordian, Ubermenu wants to take over it and make it a drop down which causes text to overlap.
Do you have any advance on how to differentiate between the two menus using a separate classes? If I disable turn off Ubermenu it works, but then I don’t have a menu up top!
I’d like to make it so the Jquery Accordian widget is unaffected by styling that the Ubermenu causes.
I think it has something to do with the fact that both menu plugins are trying to use the Custom Menus but I’m not sure and don’t know a way around that.
The site is offline, but here’s a link to a screenshot to show what I mean.
http://bit.ly/sjDfNP
So lost here. Any help is majorly appreciated!! thank you!
Mar
Hi,
unfortunately its difficult to see without looking at the actual menu. Try changing the css class of the menu in the widget control panel
Hi Lee,
I am using the menu on a site I’m just working on and its brilliant, it works extremely well. I have a small problem however, I’m using the atahualpa theme and have sticky footer enabled, teh problem is that when the menu expands beyond the page height the sticky footer doesn’t work as if the menu js over writes it? Could you give me a quick hand with it?
site is http://www.sp-renewable-energy.co.uk
Hi,
I checked the link and the menu appears to be working OK – unless this only occurs on certain browsers?
Either way the menu js cant be overwriting the sticky footer js as the menu doesnt add any code, which can interfere with footer.
The problem appears to be that the footer height is determined when the page first loads but does not change the height if anything on the page changes, such as the height of the content. The footer js needs to be modified to listen out for these kind of events.
on the home page the menu works fine with the footer being sticky, but when you click on biomass I’m using different menu items so the menu is longer and its on this page the footer no longer sticks.
Hi,
Awesome plugin and one of the only ones that seems to cover the functionality of a menu accordion in WP. Q. Is there a way to output the menu dynamically (get children of top level nav) instead of a defined menu?
Hi,
The current version of the plugin doesnt actually generate the menu. This is handled by the WordPress menu system. All the plugin actually does is apply jquery to the list to create the accordion effect.
You would therefore need either a function or a plugin to dynamically generate the menu. Once this is allocated to the plugin the accordion will automatically be applied to any new links
Lee,
I’ve tried adding 3 of your Menu Plugins to my Right sidebar on my website, with your Vertical Accordion Menu being the one I’d prefer. I know the Theme I’m using (LapofLuxury) “does not natively support menus” but it still allows menus created in Admin to be place in the right side bar with widgets (sch as yours?). The challenge is that like Lorenzo commented above, my Menu items ALL just stay expanded. But unlike Lorenzo above, I believe my Menu items have different levels.
Now I’ve spend a lot of time reading your FAQs, comments, etc. and experimenting, but I just can get the plugin to expand and collapse menu items like I’ve seen your Demo do. Can you tell me what else I need to do to get my items to perform correctly?
I’ve worked with WP for a few years but I really still need pretty detailed instructions to for any coding that has to be done. Like where exactly to place code snippets and often a SAMPLE from actual site, like your DEMO site, is extremely helpful
Please advise
Thanks
Gregory
Hi,
the footer is missing the jquery code that activates the menu. This usually means that the wp_footer() function is missing from the theme files. check your theme’s footer.php file for the following code:
If it’s not there, add the above code to the footer.php file just before the closing body tag
Thanks Lee ! I that seemed to be what was needed. What an awesome plugin, suited perfect for what I need to accomplish. It should add a very professional touch to my site in the upcoming weeks as I play with it a little more. I’ll send you you a paypal donation as soon as I can. Keep designing great plugins.
Regarding the arrows appearing, I see that you mentioned “You need to add the arrows as background images to the span tag that is added to the parent links. You can use the following CSS selector:” and using the line .dcjq-accordion .dcjq-icon {}.
Again, I’m not sure what you mean by adding this code to parent Links. Can you be a little more specific as to what file and where I can add this code?
Thanks
Gregory
is there any limitation of number of links for this plugin, i unable to add links in the menu it takes only upto 35-40 links only.
It is not allowing me to add further, but i i delete one then it allowed to add one.
Hi,
The plugin doesnt actually generate the menu. This is handled by the wordpress menu system. Any restrictions on the number of items must be due to an issue with the menu system
Hi,
Firstly, thank for the great plugin. I’m have a slight problem with it though and I’d really appreciate some help. I’m using the plugin on a custom made theme and when the plugin is activated the transition between pages is jerky. What can I do for a smoother transition? This is the site http://carlosgollan.com/.
Thanks a lot.
Kate
Hi,
Not sure what you mean with the transition between pages?
Hi Lee,
first of all thank you for this plugin!
I have installed it in my wordpress theme, but there’s a problem: when i click on a parent,second levels don’t push down the parent under them.
Where I’m making the mistake?
thanks,
nuala
Hi,
It sounds like a CSS problem. Check if the sub-menus are using something like position:absolute
!!! without position absolute… it work!! thanks a lot!!!!!
Hi,
I’m trying to setup jQuery Vertical Accordion Menu Widget but still no luck.
I don’t blame your plugin as I understood that it depends from theme to theme and if jquery is called/recalled during page loading.
As I’m have no jquery knowledge but will to understand, can you please assist me on trying to set it on this page (195.110.124.133)?
Thanks in advance
Hi,
Im unable to open the link you gave. can you check and resend
Hi.. This looks great. I am wondering,is there a way to use this to organize categories for my sidebar? FOr example, I’d like to use the main category name using this code.
The main category (46) is the main button, and the children are the sub-buttons.. Does your plugin allow this functionality, or does it only run off of menu items?
Best, Brian
Hi,
The plugin currently works using the WordPress menu system so you would first need to creae the required menu and then apply the accordion plugin
[...] Plugin Homepage [...]
Hi!
This plugin works on my pages sidebar but not on my category sidebar. .
Please see the links to the page where it works well:
http://addictivedesertdesigns.com/shop/chevy-products/
BUT then when you get to the category page…it doesnt function like its supposed to…It doesnt collapse at all.
http://addictivedesertdesigns.com/shop/category/chevy/1500/
What might be the problem?
Thanks
Hi,
Your theme files are reloading the jquery library again, which deletes the plugin’s jquery files. See FAQ – http://www.designchemical.com/blog/index.php/faq/i-get-the-error-message-error-jquery-dc-jqaccordion-widget-3-item-menu-dcaccordion-is-not-a-function/
Hi Lee,
I am having an issue with the menu collapsing to show the parent catagories and not the sub-menu when I enter a single post, I have “Auto Expand Based on Current Page/Item” checked, it works fine for the archive and search results pages?
This is the same on my custom theme, twenty-ten and a couple of others I have tried?
Is this expected functionality or am I missing something – is there anyway the plugin can do this?
Thanks!
Mike
Are the single post menu items added as custom menu items? If so, WordPress doesn’t add the “current-menu-item” class which is required to know which sub-menus to expand when the page loads
Hi Lee,
Thanks for the quick response, the menu just lists the categories, these are the steps to get to the single post as I currently have it setup:
Parent category > Child category (on click display’s archive.php for that category) > Link to Single Post (when the single post is opened the menu does is no longer expanded to show the child category)
Hope that makes sense, unfortunatley my project is not posted externally so I can not provide a link at the moment.
Mike
Hi I am trying to get the drop down to behave like the one I am using on my site right now. I want to use yours because it allows me to use my own custom menu I can setup in WP. Can you help me figure out what code to put in (I am assuming the skin file) to make it so that when someone click on the arrows it does not automatically open the category page? I want the arrow to expand/collapse the menu, not open pages. The buttons/text of the category should open links, not the arrows.
Hi,
That functionality isnt available in the plugin. You would need to customise the jQuery accordion plugin that it uses in order to set the icons only to expand the menus
OK, can you email me with instructions (which file or files to edit) and what code to include to make this functionality work.
Hi,
This isnt really covered by the plugin. We can provide a customised version if you would like a quotation on the modification?
[...] jQuery Vertical Accordion Menu creates vertical accordion menus from any WordPress custom menu. Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic. (No Ratings Yet) Loading … Tags: plugins, WordPress, WordPress Plugins [...]
Hi Lee,
Firstly thanks for this great plugin – it does exactly what I need for an intranet site I am working on, though I have a question and one slight issue I was hoping you could help me on…
1) I am interested in styling the individual parent links so that the background image for each can be different – is this possible to achive?
2) Some of the persons using this page (internal knowledge base) will not have internet access on their computers (only intranet), I am finding that if I disconnect from the internet the menu no longer functions – I have been trying to find anything that could be linking externally in the plugin to no avail – do you have any idea what might cause this?
Thanks again!
Mike
Hi,
1. WordPress adds unique IDs to every menu link li tag. You can use these to individually style the menu items
2. The plugin requires a couple of jquery plugins in order to operate. These are the only files that are required, although these should still be available locally in your wordpress plugin folder
Only thing I can think of is if you are using an external version of jQuery instead of the copy that comes with WordPress core files
Thanks Lee, I found an external link in my index.php file – I have updated this and it works as expected “offline” now!
I have been using this plugin for a while and it has worked very nicely. Not sure if this new problem is a plugin problem. One of my menu items is a “Custom Link” which has always worked just fine. This week it stopped working. If I copy the link into another window address bar it goes to the linked page just fine.
But when clicking on the menu item it shows the url in the bottom of the browser window but it goes nowhere and no other tab is opened either. The link is the one to “Photo Albums” sub item of “The Parish” and should go to a Picasa album. I’m using version 2.5.1 of the plugin. I tried deleting the menu item and making a new custom link but still no fix. Do you have any idea what might be causing this? Thanks.
Relating to my previous post… I just discovered that If I hold the command key down(Mac) while clicking on the link it does open in another tab.
Hi,
There shouldnt be anything in the plugin that causes this problem and the recent update made no changes to the way the menu works, only added the ability to use shortcodes instead of widgets.
I created a local version of the page by copying the source code – when clicking the link using the same plugin source files but on the local drive the link works OK. Have you made any changes or installed any plugins recently that may redirect the URL at all on your server. Unfortunately Im not sure why this would occur but I dont think it is plugin related.
Thank for your reply. I have recently installed Haiku Player which replaces all mp3 links to insert an inline audio player, but when I disable that it doesn’t fix the broken link. The only connection I can see to your plugin is that it also uses jQuery. On their support page it answered one persons problem by stating that there were now two versions of jQuery loading on their page.
Can you tell me where I would look to find if my page is loading two versions of jQuery? Thank you.
I think I’ve figured out what’s wrong. After trying another similar plugin and compared it to a blogger-blog I notice that it’s most likely because it has to load around 1900 blog posts. The blogger archive system dosen’t load them all at once. Seems to be a hard fix i guess.
Hi,
The plugin itself cant cause this as there arent any large files involved. What it may be is the WordPress menu system. If you are using a particularly large and complicated menu then there are issues with how it is generated. All I can suggest is to use either a caching plugin, which should help, or creating a static menu, which doesnt require loading from the database each time it is rendered.
Hey.
This plugin is just what I’ve been looking for! However i have one major problem. My entire sites loading time drops down around 10 seconds – even when loading the index page where the plugin isn’t visible. I’m sure it’s the plugin cause the it loads smoothly as soon as i deactivate it. Any idea how to fix this?
-Anders
Can some please help on how to get this plugin working using the shortcode.
How to use this [dcwp-jquery-accordion menu="Test Menu"] to get it working?
Thanks in advance.
add the shortcode to either your post/page content text or to your template file. See FAQ Adding an accordion menu using shortcodes to your template files
[...] caja de búsqueda JQuery Accordion Menu Widget. Otra opción es descargarlo a tu ordenador desde la página de soporte o desde el repositorio de WordPress. Recuerda que, en este caso, tendrás a continuación que [...]
Finding the plugin really useful and easy to use – one query, which I’m embarrased to ask is about highlighting the current page. I’m using the clean skin and have noted your comments regarding using current-menu-item to highlight the current page.
I’ve tried lots of variations but am having problems getting this to work. Are there any examples you can point me to? (not sure if relevant but I’m currently using the Pagelines free theme)
Hi,
Use the wordpress class that’s added to the li tag – current-menu-item. So to target the link you would use:
.dcjq-accordion li.current-menu-item a {}HI,
I have just sent an email to your info email address. I recently updated the plugin to the latest version but in doing so I lost the custom formatting which was attached to it (with the older version of the plugin). I am now left with the default look the plugin comes with.
Can you tell me how I get my old formatting back? The plugin was installed by a deisgner who has gone awol so am not sure what I need to do
Hi,
See email response – you will need the style sheet file that the designer created for the menu. This should be uploaded to the theme folder, not the plugin folder.
Hi,
I have problem with loading jquery library. I tested this plugin on my local with default wp theme and works fine. But when i putt him in to my other wp theme where i have jquery slider so menu stop doing animation. It’s because of this piece of code:
<script type="text/javascript" src="/js/jquery-1.4.3.min.js”>
when i delete this code menu works fine but, when i delete this so my slider stop work. So what i must do.
btw. sry for my english.
Hi,
You will need to get the slider plugin author to modify the code to use jquery correctly
And do you know some good wp plugin slider which is free?
hi im trying ot customize your plugin i need to add the class a:active when after expanded the menu im on the page i need to see the page link with a different color, but i cant do it anyway.
do you know the reason?
this is the code:
#dc_jqaccordion_widget-%ID%-item ul a:hover { color: #9AC753;} // this is work//
#dc_jqaccordion_widget-%ID%-item ul a:active { color: #9AC753;} // dont //
Hi,
Change it to:
#dc_jqaccordion_widget-%ID%-item ul a.active { color: #9AC753;}now when i move the mouse over the links all the link take the color not the selected 1 in that page this is my all code:
#dc_jqaccordion_widget-%ID%-item{}
#dc_jqaccordion_widget-%ID%-item ul, #dc_jqaccordion_widget-%ID%-item ul li {margin: 0; padding: 0; border: none;}
#dc_jqaccordion_widget-%ID%-item ul a { font-size: 15px;background: url(“skins/images/bg_grey.png”) repeat-x scroll 0 -1px #D7D4D4; padding: 10px 10px 10px 50px; text-decoration:none; display: block; color: #333; border-bottom: 1px solid #ccc; border-top: 1px solid #fff; position: relative; text-shadow: 1px 1px 1px #fff;}
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent, #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {background: #D7D4D4 url(skins/images/bg_grey.png) repeat-x 0 -1px;}
#dc_jqaccordion_widget-%ID%-item ul a .dcjq-icon {position: absolute; top: 50%; left: 14px; width: 34px; margin-top: -17px; height: 34px; background: url(skins/images/arrow_grey_right.png) no-repeat 0 center;}
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active .dcjq-icon {background: url(skins/images/arrow_grey_down.png) no-repeat 0 center;}
#dc_jqaccordion_widget-%ID%-item ul a:hover { color: #9AC753;}
#dc_jqaccordion_widget-%ID%-item ul li a.active { color: #9AC753;}
#dc_jqaccordion_widget-%ID%-item ul li ul a {
background: url(skins/images/arrow_grey_right.png) no-repeat 0 center!important;
margin-left: 20px;
}
#dc_jqaccordion_widget-%ID%-item ul li ul li a {
background: none!important;
}
#dc_jqaccordion_widget-%ID%-item ul li {
background: none!important;
}
i want to activate the link in the page im visiting in that moment, but i cant do it no way…
if you need my backstage i’ll send it
thanks
If its just the current active page then you need to use the WordPress class – current-menu-item:
#dc_jqaccordion_widget-%ID%-item ul li.current-menu-item a { color: #9AC753;}man u right im an idiot!
thanks i could lost all my wk to fix this
Hi Lee, referring to the new “disabled Class”… there is a way to enable only for this entry a direct link?
When I disable a class actually turns off its accordion, I always like to have the curtain on but be able to link directly to a page just for one item?
thank you
Hi,
If you want to just disable the link you can just add “#” to the link URL
Hi guys,
I´m having problems with this plugin. It doesnt work properly , here is an image: http://a.pix.ge/d/qgikr.jpg
How can I solve the problem?
Hi,
The link doesnt work
Sorry, here is the picture> http://i55.tinypic.com/2q8y36b.jpg
Whats the problem with the menu?
I was testing it on localhost and when clicking there is no expand function, + it doesnt appear like on demo , for example I would like to see it like this one http://www.designchemical.com/media/images/vertical_accordion_plugin.jpg but there is a bullet and no drop down menu
To remove the bullets you can follow the info given in this FAQ – Removing the default margin & bullets from WordPress twenty ten theme
With regards to the drop down menu not working it could either be due to interference from your theme’s style sheet or more likely caused by a javascript error preventing the menu from loading properly – check out the following FAQs:
http://www.designchemical.com/blog/index.php/faq/i-get-the-error-message-error-jquery-dc-jqaccordion-widget-3-item-menu-dcaccordion-is-not-a-function/
http://www.designchemical.com/blog/index.php/faq/the-menu-appears-on-the-page-but-does-not-work/
Hi lee
your plugin is great but i got the same problem. please help me to get it fix. im using wordpress 3.2.1
Thanx…
What problem is that? If same problem try following the same reply used in the comment
Hi lee
your plugin is great but i got the same problem. it displays the complete list of parent and child pages instead of expanding child pages.
please help me to get it fix. im using wordpress 3.2.1
Thanx…
Your comment is awaiting moderation.
See previous responses to same problem. Its a jquery problem. FAQ has further info on how to handle this
Hi Lee,
Just installed your great plugin yesterday and I am finding it very easy to customize using css. I do have one question, though, that you can probably answer in two seconds. I am not familiar with jquery, so what would be the class name for an active sub-menu item? I have ticked off “Auto Expand Based on Current Page/Item” and applied stylizing to the parent.active class, but I want it to highlight the page that it is on as well. Here’s the page where I am testing the menu: http://74.220.207.185/~mianusor/what-we-do/research-and-education/graduate-level/meet-our-raps/
Thank you for your help!
Patricia
Hi,
To highlight the current page you can use the built-in wordpress CSS class, which is “current-menu-item”
This plugin is phenomenal!
Building a site with 72 categories (13 parent) and unfortunately the WP Menu lacks two major items that I need:
1) The ability to add categories to the menu AND maintain their hierarchy (see bug ticket: http://core.trac.wordpress.org/ticket/18271).
2) The ability to only show those categories that have posts.
I would love to be able to use your plugin when calling wp_list_categories(); instead of using a WP menu. Is this possible?
You can edit the plugin files directly and replace the wp_nav_menu function – line 71 of dcwp_jquery_accordion_widget.php
Thanks for the QUICK response! I wanted to ask before I started editing the core files.
Is there a way to make the menu gather the page list automatically to display instead of having to configure it manually?
Hi,
The plugin doesnt actually generate the menu HTML, this is done via the WordPress menu system. All the plugin does is apply jQuery code to create the accordion effect. There are probably plugins out there that can handle the auto menu.
Hello Lee,
I’d like to use your menu not only to display the menu items but also custom fields with content that are attributed to pages displayed on the menu so that the contents integrate with the menu. Is it possible to do so?
Can you give me some pointers on how to accomplish it?
Thank you!
What can I alter in the code of this plugin for wordpress to allow it to use the “wp_nav_menu”? I have a bit of code I need to use that requires the menu to use that.. Thank you so much
Hi,
The plugin already does use the wp_nav_menu() function
Good afternoon Lee,
I am still having trouble with the delay caused by the accordion plugin, I tried to update all the “slideUp” and “slideToggle” to fast or 3000 but it did improve the speed of the accordion?
THank you for your help,
Christele
On which pages are you having a problem? I checked a few in firefox and the speed seems normal
Good afternoon Lee,
I am experiencing a long delay when the accordion is expanding. I reviewed the posts on your website referring to the hoverIntent settings but I am using the “click” option in order to expand the accordion.
thank you
christele
Hi there people! I’m having the same problem. I readed and tried change JS, etc. Not worked. Then, I restore the JS to original. The “Auto Expand Based on Current Page/Item” maybe is not working. I tried to combinate other options in the plugin widget panel, but no sucess.
I tried to disable all other plugins, already checked loading of jQuery (and it is loaded only one time).
Please………
That’s a VERY great plugin.
Thanks!! John – Brazil
Hi,
What exactly is the problem you are having?
Im not able to get it to work on http://www.4x4offroadtour.com/ I get this error in firebug:
jQuery(“ul.sf-menu”).superfish is not a function
http://www.4x4offroadtour.com/
Line 368
jQuery(“#dc_jqaccordion_widget-3-item .menu”).dcAccordion is not a function
http://www.4x4offroadtour.com/
Line 368
I checked if the jqueary code was in the footer area and it is!
Any idea?
Hi,
See FAQ – I get the error message … Error: jQuery(“#dc_jqaccordion_widget-3-item .menu”).dcAccordion is not a function
The problem is caused by the custom contact form plugin. Unfortunately an error with this plugins code is overwriting the jQuery needed for other plugins. I have contacted the plugin author about the problem but so far it has not been updated
damn – not good – as I had put couple of days setting up this custom contact plugin – uff
Hi,
Just contacted the plugin author again and it looks like it has now just been updated to correct the jQuery problem so it should work OK if you update the Custom Contact Form plugin
Sorry my mistake – it is working now:) thx a lot:)
Hi Lee i have a small problem with the plugin.
even if i have 3 layers, my menu doesn’t collapse/expand.
you can see it from: http://www.melancholymen.com
Hi,
Just checked the site and the menu is working OK in Firefox. What browser are you using?
Hi,
I was wondering if there was a way to turn off the first level of the navigation? I only want the second and third level showing.
Thanks!!
Hi,
You can use the “Class Disable” option – Input the CSS class of any parent menu items that you want to disable – e.g. add a custom CSS class of “menu-disable” in the Class Disable field, then in the WordPress menu editor page enter this class name in all top level menu items. This will disable the accordion effect for these links.
I have added more detailed instructions in FAQ – How to disable the accordion effect for specific menu items
Hello,
I am using the Vertical Accordion Menu widget on my wordpress site and I love it! I do seem to have run into a problem though. Is there some sort of limit on the number of menu items I can have? I have 3 levels. 4 top level, each top level has 5 second level, and each second level has 12 third level items. When I try to add pages that I have recently published to the menu, it simply comes back with a blank page and the changes are not saved. Any information you could provide would be greatly appreciated. Thank you.
Hi,
The plugin doesnt actually generate the HTML for the menu – this is still handled by the built-in WordPress functions.
I have come across issues before with WordPress menus being limited in size and it was caused by Suhosin being installed on the server – basically a system to protect servers from dodgy PHP code. Usually though you would get a warning telling you about the problem.
Best option is to check with your hosting company if your server does have it installed
Hey Lee,
Glad i found your page! Ive tried a number of your menu widgets and cant seem to get them working properly as in your demo.. they act as just a normal drop down menu. Will you please take a look? Any feedback would be much appreciated! http://www.moderndiesellegion.com/
Hi,
You theme files are loading the jQuery library again in the footer. This is overwriting the jquery plugin files used by our menu plugins. You need to remove the code from the theme file – looks like it may be in footer.php
Thanks ill take a look!!
Not exactly sure what im looking for here. Which part is to be removed?
<?php
/**
* Call footer elements.
*/
function thesis_footer_area() {
thesis_hook_before_footer();
thesis_footer();
thesis_hook_after_footer();
}
/**
* Display primary footer content.
*/
function thesis_footer() {
echo "\t\n”;
thesis_hook_footer();
thesis_admin_link();
wp_footer();
echo “\t\n”;
}
/**
* Display default Thesis attribution.
*/
function thesis_attribution() {
echo “\t\t” . sprintf(__(‘Get smart with the Thesis WordPress Theme from DIYthemes.’, ‘thesis’), ‘http://diythemes.com/thesis/‘) . “\n”;
}
Somewhere in your files/setup is the following code:
This is what needs to be removed
Im having trouble finding it. But i know once i do it will work properly. Thanks so much for your time!
Hey Lee,
Will you shoot me an email? Im in need of some help and I’d like to ask your rates. Hope youre having a wonderful day. Thanks!
Elliot
Fantastic plugin – just what I was looking for.
One minor issue: W3C validator comes up with 2 errors and 4 warnings in relation to the following:
“…l-accordion-menu/skin.php?widget_id=3&skin=grey” type=”text/css” media=”screen…
This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.”
Any suggestions as to how I can get this to validate.
Hi,
You can replace the ampersand in line 248 of dcwp_jquery_accordion_widget.php with “&”. I will correct it for the next update.
Hi, first I want to thank you on you awesome work. The menu is great. I hope you can help me if this.
I’m having a problem under IE8. I set the accordion menu in which sits on the left of the content. It works fine under IE 9 and all the rest browsers. But under IE8 the menu spans across maximum width and pushes the content body under it. I have a Width assigned to and also to .dcjq-accordion.
I can’t figure out what’s wrong. The website in question is http://www.maertools.com.
Any help would be greatly appreciated.
Hi,
Try adding the following CSS to your style sheet:
.dcjq-accordion { width:220px; float:left;}It reduced it to the size of the longest element. This is another thing, apparently it doesn’t apply some css elements unde IE8. For example font-family, font-size is not applied and if a menu element has a long name it doesn’t break on to the next line like it should because of width.
ok I figured it out. It was because of the html5 tags.
Hi,
Yes its not plugin related. IE8 has problems handling the “aside” tag and doesnt recognise the CSS for this tag
Hi Lee happy when I found your plugin, however, I have a problem: the menus do not collapse correctly i think there is a problem with the wp_head(); and wp_footer();
I have read your FAQ and all comments but did not make it to work
need some advise from the creator how to make it work
This is my site:
http://addsheetmusic.com/
could u pls take a look if you have some time
hank u very much for your help,
Boris
Hi Lee Sorry to bother you again
i solved the problem of expansion menu ) works great
now i have a new one;;;(
When i am acceding this page
http://addsheetmusic.com/sample-page/
the menu auto expands could you tell me pls what is the problem thank u
regards Boris
Hi,
The theme is incorrectly loading jQuery again therefore overwriting the plugin files – see FAQ http://www.designchemical.com/blog/index.php/faq/i-get-the-error-message-error-jquery-dc-jqaccordion-widget-3-item-menu-dcaccordion-is-not-a-function/
Seems to be something related to AJAX js
ok i solved it thank u disabled ajax
thanku onemore tine
great plugin
good luck with your site
boris
Hi, first of all thanks for the nice pluggin.
We would like to use it, however we have one question:
Is it posible that the menu is allways completely open when a page loads?
Is it possible to overwrite the current behaviour so it doesn’t collapse?
Thanks a lot for your answer!
Best regards,
Koen
Hi,
The jQuery plugin would need a slight modification to have it completely open on page load.
To overide the collapsing feature you can use the “Class Disable” field to switch off all of the sub-menus.
Wouldnt it be easier just to use a standard unordered list though and save on loading the jQuery plugin files?
hi Lee Thank u very for the reply and sorry to bother u again
I must say that i am a newbe in this ….i am building my site just editing the css of my theme and installing the pluging i need the rest is since for me ))))
if u have some free time could u tell me pls what exactly i had to do to make it work properly on my page http://addsheetmusic.com/add-sheet-music-site/
Thank u very much
Regards
Boris
Hi Lee!
Thank you for the amazing plugin!!
It works beautifully across all browsers, but I have a question..in Chrome (v 12.0.742.122) the entire page will flash to white (I think it’s reloading?), it will randomly do it in Firefox (5.0.1), but not enough that anyone would notice.
Any thoughts on why it would do this in Chrome?
Thanks!
After turning off and on the plugin to test, it doesn’t appear to be connected to your plugin. hmmm.
Sorry to interrupt!
hi,
I have come across this issue before (not plugin related) but could never find a reason as to why it occurs in some sites. Certainly the plugin code shouldnt cause this
My guess is that it has something to do with the WP Ecommerce plugin. The other time that I know that I’ve seen it happen was on another site built with it.
Hi Lee,
I am very happy when I found your plugin, however, I have a problem: the menus do not collapse/expand.
1. I have 3 levels in my menu
2. The widget is working in general since I see the (expanded) accordion-menus
3. There’s the wp_head(); and wp_footer();
4. I tried all of the different settings for the widget
5. I checked Firebug, and it didn’t give me any errors, if I read it correctly.
6. I don’t have any other plugins/widgets installed.
7. I read your FAQ and all comments on your website for hours (and tried a lot of things) nbut did not succeed
Any idea? This is my test site:
http://projekt.beniafe.com/test_wp/
Thanks a lot for your help,
Lorenzo
Hi,
The menu doesnt have any sub-menus so there is nothing to expand. All of the links currently showing are 1st level menu items
(you are answering very fast, great!)
Oh, oh; of course i defined sub-menus in the wordpress pages menu; however, I did not know, that I again have to indent manually the menu items witin the wordpress menu page.
So it works perfect. Thanks a lot.
Question: Why do I not see any arrows in the accordion for the parent menus?
Thanks
Lorenzo
Hi,
You need to add the arrows as background images to the span tag that is added to the parent links. You can use the following CSS selector:
.dcjq-accordion .dcjq-icon {}
OK. Got it. This is easy to manage.
Thanks a lot for your help, I will donate via paypal.
Lorenzo
Thank you. Appreciate it
Hi,
Awesome plugin!
I was wondering if it is possible to make the submenu pop out when you hover over the whole .li rather than just the a?
I have styled the menu so the links look like buttons, but only part of the ‘button’ works (the part where the a is).
Thanks!
Brad
Hi,
Unfortunately the jQuery plugin is based around the a tag to trigger the effect so its not possible to do this with the current WordPress version. The jquery plugin can be edited directly to change this though
Hey Lee,
Would you mind emailing me? I’d like to see if I can pay you to change the jquery to do this as I don’t know much about jquery.
Thanks,
Brad
Have sent email
I’m testing the menu on the following site http://www.tier-1products.com/laser-cut-metal-art/category
I noticed that as soon as I click on any of the categories that all of the menus expand and stay expanded. How can I make the menu with items click inside it stay open, but have the rest of the menus closed?
Thanks,
Paul
Hi,
The problem is caused by your theme files reloading jQuery. Check out the FAQs which have more info on this problem – http://www.designchemical.com/blog/index.php/faq/i-get-the-error-message-error-jquery-dc-jqaccordion-widget-3-item-menu-dcaccordion-is-not-a-function/