Closed (works as designed)
Project:
Omega
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2012 at 12:54 UTC
Updated:
26 Nov 2013 at 15:24 UTC
Jump to comment: Most recent
Comments
Comment #1
marcoka commentedyou could restyle the menu in one of your responsive css. i think they use js here because what they do would require changing the html markup. with some responsive js trick. you could take a look at the site code.
Comment #2
ANDiTKO commentedCheck these out:
http://css-tricks.com/convert-menu-to-dropdown/
http://mattkersley.com/demos/responsive_menu/
http://www.smashingmagazine.com/2011/07/22/responsive-web-design-techniq...
Comment #3
Agence Web CoherActio commentedWill try these.
Many thanks
Laurent
Comment #4
cellar door commentedAlso another way (non js) is to load your second menu and hide it on certain widths and show on others. I tend to do this by replacing my larger superfish menus with an easy and shortened menu list and just use css to show/hide as needed. The extra menu doesn't use much bandwidth at all
Comment #5
scottsawyerJust a quick, totally non-js way to do it.
If you look at the markup, there is a Main Menu in a hidden h2. So, in my global.css, I make it display block, make the ul li display:block,
The whole thing is wrapped in a div or something, so css looks kinda like this
div h2 { display:block; }
div ul ( display: none; }
div:hover ul { display:block; }
div ul li { display:block; }
Now you have a tap friendly drop down that looks like it is triggered by the h2.
You just have to go back and over ride everything in default.css to get your horizontal menu back.
I actually got here because of my own problem. I am using Nice Menu for a drop down on the desktop version of the site, however, I can't find a great way to disable it on the mobile version. It seems to over ride all my style rules.
I really wish Omega just supported second level menu items on the primary menu instead of requiring a module...
Still, the guys did a terrific job :)
Comment #6
IcanDivideBy0 commentedThanks,
I used the code from http://mattkersley.com/demos/responsive_menu/ and it works very well. Just be sure to remove the two "console.log" in the jQuery plugin, otherwise, it won't works widows phones.
Comment #7
tnanek commentedJust thought I should update you all on the work I'm doing in my sandbox. It is working to implement this technique (as linked above) for Drupal. It is not done yet... see the todo list on the project page for my agenda. I may make it into a full project once those items are taken care of.
The css to add to accomplish the desired affect is going to be similar to what Scott posted above, though a little cleaner in my opinion...
In global.css:
Where ever you want the to toggle that, put that in an @media style sheet. I would advise YOURTHEME-alpha-default-normal.css unless you've changed the settings extensively from the defaults. Include something like the below there.
Disclaimer: I've not tested this yet, so I don't know if display:block is the appropriate setting to use.
Currently, when an item is selected, it will display a button to push to initiate the redirect, and it only displays items from the first level of the menu.
And lastly the link to the sandbox: menu select
Comment #8
DriesP commentedMake sure to check out: http://bradfrostweb.com/blog/web/responsive-nav-patterns/
He gives a nice overview of the most common ways to add a responsive menu.
Greetz!
Comment #9
Citlalli commentedhello, when i should put the js on drupal?? on libraries to work with the menu responsive??
Comment #10
hydra commented#9 what exactly do you want to achive? To add custom js to youre theme, you can use a preprocess function:
Comment #11
Swebmas commentedAny idea why the jquery.mobilemenu.js technic isn't working on a page that load a video from Youtube with the mediafront module? Just to make sure I also tested with the premium Responsive theme /project/responsive because it's using the same technic and it's still not working.
Comment #12
sco_tt commentedI've written a little tutorial on how to implement a responsive toggle menu in Omega here:
http://scottpinkelman.com/blog/responsive-toggle-menu-omega
Comment #13
Anonymous (not verified) commentedI've found a perfect tutorial for a responsive menu, here's the link:
But I have one problem, how i can make my menu in the narrow-screen like the mobile menu with the expand button?
A short example:
This is a part from the menu.js from the link above. For a test I change the first part of the js above to...
...it doesn't work... Of course i have add the same CSS like the global.css in my default-narrow.css. Can anybody help me with this? I want the expand button in the omega mobile- AND narrow-screen. Thanks for help.
Comment #14
Anonymous (not verified) commentedSorry the link doesn't work, heres again: Creating a responsive menu for omega subthemes
Comment #15
ddille commentedYou can use the Superfish module to accomplish this.
Comment #16
tanmaykThere is a module for this. Check out Responsive Menus
Comment #17
Kendall Totten commentedRTBC