Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
We cannot attach the menu to anything if JavaScript is off. The menu is made available in the form of a JavaScript variable... However, we could create a Simplemenu Block that is activated if JavaScript is off. And that block would display the Simplemenu. I do not see any other way at this point. Let me know if you have a different idea.
Subscribing. Making a block that activates when Javascript is turned off would be nice, but it would also be good to have an option to use the block as a primary.
Would Fixed mode still work without Javascript? What if, only when Fixed mode is enabled, the HTML is inserted directly instead of with jQuery? Perhaps at the beginning of Closure if the block isn't placed anywhere?
I am thinking that we could use the <noscript> tag to insert the menu in a block. The whole block would need to be encapsulated in the noscript tag, but that should be easy to do with a block template.
I did try Nice Menus, but I found it more difficult to theme than SimpleMenu and I want the menu to be fixed at the top of the page anyway. I just want the menu (that is fixed at the top of the page) to remain functional when Javascript is turned off.
Comments
Comment #1
zroger commentedmoving to the 2.x branch
Comment #2
AlexisWilke commentedWe cannot attach the menu to anything if JavaScript is off. The menu is made available in the form of a JavaScript variable... However, we could create a Simplemenu Block that is activated if JavaScript is off. And that block would display the Simplemenu. I do not see any other way at this point. Let me know if you have a different idea.
Thank you.
Alexis Wilke
Comment #3
meustrus commentedSubscribing. Making a block that activates when Javascript is turned off would be nice, but it would also be good to have an option to use the block as a primary.
Would Fixed mode still work without Javascript? What if, only when Fixed mode is enabled, the HTML is inserted directly instead of with jQuery? Perhaps at the beginning of Closure if the block isn't placed anywhere?
Comment #4
AlexisWilke commentedmeustrus,
Did you try the Nice menus?
It puts a Super Fish menu in a block already.
Thank you.
Alexis Wilke
Comment #5
AlexisWilke commentedI am thinking that we could use the <noscript> tag to insert the menu in a block. The whole block would need to be encapsulated in the noscript tag, but that should be easy to do with a block template.
Mainly writing a note to myself... 8-)
Thank you.
Alexis
Comment #6
meustrus commentedI did try Nice Menus, but I found it more difficult to theme than SimpleMenu and I want the menu to be fixed at the top of the page anyway. I just want the menu (that is fixed at the top of the page) to remain functional when Javascript is turned off.