The Sub menu's auto expanded when on active page. on the other pages works fine, but when im in one of the sub pages, it is auto expanded. In the menu settings i even have it turned off as expanded by default. what am i missing?

thanks!

Comments

patoshi’s picture

Status: Active » Closed (duplicate)

duplicate of http://drupal.org/node/1125230

closing..

tomate2010’s picture

Status: Closed (duplicate) » Active

subscribe, same problem for me : I have a superfish menu with two sub levels. When one section is active the second level stays expanded . And the worst is that if I change the section, it stays expanded with the submenu of the section before, and stays like this whatever the section I choose.

It seems to be a cache problem, I'd like to disable only the cache menu but I don't know how to do that, and I'm afraid this will slow my site...

Thanks for helping !

patoshi’s picture

actually this problem was not solved. i did some looking around and it has something to do with the js that isnt being loaded properly.

So the problem is: Superfish menu is being expanded when on the active node.

screenshot of my sub pages loaded with the menu already expanded and shows that i tried to type in the superfish code manually and it does not get recognized.

http://prntscr.com/326vy

The reasoning why I say its a js problem is that you can manually put in the js code into the chrome console: (inspect element then press ESC)

type this in the console:

jQuery(function(){
jQuery('#superfish-1').superfish({
pathClass: 'active-trail',
animation: {opacity:'show',width:'show'},
speed: 'fast',
autoArrows: false,
dropShadows: false});
});

and you'll see that it says method is not defined which basically means the superfish js wasnt loaded properly and im not sure wat to do now.

urban farmer’s picture

What is your block setting for Path levels? I have a 3 level menu and I want the second level to stay expanded when a third level link is active, so I set path level to 1. If I set it to 0, it is not expanded at all.

patoshi’s picture

i have it set at 1 and it should work like yours but it doesnt.

screenshot: http://prntscr.com/32ao6

urban farmer’s picture

Maybe it is a system or browser issue. I am still in the developing stage, working on a local server on a mac, using chrome and firefox. I hope to have it on a live server this afternoon, and will test on windows then.

patoshi’s picture

no its not i also tried on ie8 and other browsers. it does the same thing. after inspecting it through the console it something to do with loading the super fish js file.

tomate2010’s picture

A solution that is still working on my site is to run cron and flush caches on a page that hasn't submenus items, like the front page. That avoids the display of the same submenu on all pages.

mehrpadin’s picture

Hey there,

Sorry for the late reply, is there any chance I could see your sites? you can email me the URLs.

smscott’s picture

In the Superfish configuration for the menu, I changed the css class in the "Path class" to something other than the default "active-trail". Now the sub-menus close.

droddis’s picture

I'mhaving the same issue.

Url is testingsite.roddiscomms.com

Fusion subtheme.

Can you let me know what you changed the path class to in order to resolve the issue?

thushad’s picture

#10 works for me. This happened when i try to enable "Take Expanded option into effect" on & then disable it again. I think the issue on my case is disabling the "Take Expanded into effect" option not working properly.

brownlo’s picture

Issue summary: View changes

#10 Also works for me. What are the adverse effects of changing this?

mehrpadin’s picture

A) Quoting myself from another thread: "make sure Path level option is set to 1"

B) #10 makes active page highlighting in that SF block impossible.

C) The "Take Expanded option into effect" checkbox simply filters out menu items (together with their child items) which do not have the Expanded option checked in the Menu link edit page, nothing to do with the active or anything else.

mrogers’s picture

Experiencing this as well -- latest version of dev and master branch of superfish plugin. When on an active page, the associated menu item is expanded on page load. It can be closed by clicking anywhere on the page, and then acts normally.

bdombro’s picture

It's a problem with active trail. I found that changing the version of my superfish library fixed it. I was running 1.9 of the Superfish module with the master branch of Superfish library. When I changed the library to the stable branch, the active trail worked.

jenniferannwalsh’s picture

I changed 'active-trail' to 'active' and now it works properly and I still get the active page link highlighted appropriately.

prerak_14’s picture

i am using superfish menu in drupal 7......problem that i facing is when i click on any menu child item then all menu child item expanded for a while (a second).... please provide solution for that..

kentjames1980’s picture

#17 works for me, all menus still open and work fine but it closes on the active page, ^5 all

ivnish’s picture

Status: Active » Closed (outdated)