Shape 5

Wordpress Club Plugins => Accordion Menu - Club => : dmock9999 January 01, 2013, 08:27:00 PM



: Home button does not work when "Enable Parent Link" = No
: dmock9999 January 01, 2013, 08:27:00 PM
I have "Enable Parent Links" = No because the menu does not stay open for more then a couple seconds unless you click on the > symbol next to the menu option.  Everyone seems to want to click on the menu topic itself to see the submenus below.  The issue is when you have it set to No, the first menu option is Home and it does not take you anywhere.  It is just showing javascript:; .


: Re: Home button does not work when "Enable Parent Link" = No
: Tristan Rineer January 02, 2013, 11:36:40 AM
Enable Parent Links applies to all top-level items in the accordion; you can disable the "Home" item with a small code edit, but that's all I can suggest.

To do that, edit "{plugin_folder}/mod_s5_accordion_menu/functions.php", find "echo $home;" (right near the top, under "$home = "), and change it to "//echo $home;".

That will "comment out" the line that generates the "Home" button on the accordion menu.


: Re: Home button does not work when "Enable Parent Link" = No
: dmock9999 January 03, 2013, 03:22:38 PM
I am sorry, I don't see any replies!


: Re: Home button does not work when "Enable Parent Link" = No
: dmock9999 January 03, 2013, 07:07:42 PM
Yeah that kind of works.  If I remove Home all together, it expands the next menu option.  Can I keep the second menu item collapsed?
You can see my issue at ombc.net.

OR BETTER

Can I set "Enable Parent Links"=Yes and get it to keep the menu item expanded for more then a couple seconds?  I don't understand why it would be designed to collapse after the user just tried to expand the menu.

Dan


: Re: Home button does not work when "Enable Parent Link" = No
: Tristan Rineer January 04, 2013, 10:43:05 AM
The menu shouldn't be automatically collapsing; I'll have to take a look at the code for it and see what I can do about that.

I've been wanting to update the plugin to use the WP3 custom menus anyway, but getting that to work correctly might take a while, so I'll try to focus on the collapsing thing first.