Menu doesn't work on IOS

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
crossland
Forum Members
Forum Members
Posts: 24
Joined: Fri Sep 11, 2009 9:55 am

Menu doesn't work on IOS

Post by crossland »

Hi. I'm running CMS Made Simple 1.10.3.

When I use the "Navigation: CSSMenu - Horizontal" style sheet, it works on Firefox on the Mac and IE on Windows, but not with IOS. On IOS, none of the drop down menus appear.

Has anybody else encountered this? (I did search on the forum!).
If so, what do I need to change?

The site is located at http://merlin.xssl.net/~wseditor/

Thanks,

Tim
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Menu doesn't work on IOS

Post by Dr.CSS »

There is no "hover" in iOS so you have to program another alternative for it...
crossland
Forum Members
Forum Members
Posts: 24
Joined: Fri Sep 11, 2009 9:55 am

Re: Menu doesn't work on IOS

Post by crossland »

Thanks for your reply.

Is there a stylesheet supplied with CMSMS that supports drop down menus on IOS?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Menu doesn't work on IOS

Post by Dr.CSS »

No there is not...
lewishowles
Forum Members
Forum Members
Posts: 52
Joined: Tue Oct 25, 2011 4:45 pm
Location: Lancashire, UK

Re: Menu doesn't work on IOS

Post by lewishowles »

I wouldn't recommend drop down menus in iOS, or any mobile (even though you can get them to work without any modification), as they're too complex and finicky for a small screen.

There's a great jQuery plugin that turns a well formed navigation into a select menu on mobile devices, which I've used before.

Other than that I'd recommend either an accordion menu on mobiles, or a single level navigation with further navigation items on subsequent pages.
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm
Location: Florida

Re: Menu doesn't work on IOS

Post by carasmo »

Code: Select all

// iOS Hover Event Class Fix - http://niteodesign.com/web-design/iphone-ipad-ios-and-the-css-hover-event/
// alternate http://blog.0100.tv/2010/05/fixing-the-hover-event-on-the-ipadiphoneipod/
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
$(".nav li a").click(function(){  // Update class to point at the head of the list
});
}
This script takes a CSS drop down hover menu and turns it into a click menu on IOS. If your first level item not a link to a page (it's a section header), those users will see the drop menu, if the first level item is a page, they will go to that page. Hover is not an option.
Post Reply

Return to “Layout and Design (CSS & HTML)”