Comments

wheretoplaygames created an issue. See original summary.

wheretoplaygames’s picture

Title: Can I have Accordion for full-size menu? » Need Accordion option when screen full-sized
Issue summary: View changes

I really like the accordion menu, but i don't see a way to make the default (full-size) menus use the accordion style. Am i missing something?

It seems that if we can have it on the small-size menu, it should be avail. for the large...

I wanted to clarify my issue, as it seems like it should be possible. I can set the WINDOW WIDTH SETTINGS
sf-Smallscreen to 2000px to have the accordion appear by defualt, but it is toggled closed. Is there a way to have the accordion (open) be the default menu?

wheretoplaygames’s picture

Not sure if these Issues are active anymore, but digging deeper, i found a solution(?) for 7.x-1.x-dev at: https://www.drupal.org/node/2238037

I havent' been able to get that to work for me. It seems that one of the key files for changing this globally is:
\libraries\superfish\sfsmallscreen.js

I set Configure Block > Superfish Plugins > SF-SMALLSCREEN to Enable jQuery sf-Smallscreen plugin for this menu.
And when i modified this:

// Adding necessary classes.
accordion.addClass('sf-accordion sf-hidden');

to:

 // Adding necessary classes.
accordion.addClass('sf-accordion');

The accordion menus show expanded by default, but the divs run over into the below elements and stay expaned when shrinking the screen size. So, I think i am close. Any info or guidance (or code!) would be appreciated.

Thank you,

miksha’s picture

I don't know if this option existed before but setting breakpoint to higher value than 768px would activate accordion version for larger screens by default.

ivnish’s picture

Status: Active » Closed (works as designed)