Colapse menu by default on mobile version

GK User
Fri Jul 19, 2013 5:44 pm
Hi,
Is it possible to get the menu already down (pressed) in the mobile version of the template?

Thanks,
S@
User avatar
Platinum Boarder

GK User
Fri Jul 19, 2013 7:12 pm
Do You need search and close button, or You jus tould like to replace current "navbar" with opened menu items?
User avatar
Moderator

GK User
Fri Jul 19, 2013 7:49 pm
I can sacrifice Search and Close, no probs :D
Just tell me what to do? :D

S@
User avatar
Platinum Boarder

GK User
Fri Jul 19, 2013 8:24 pm
Ok, its tricky, because I always say - do not touch .css files beside override.css. But our mobile version of sites doesn't have override designed to them, so edit the file:
/templates/gk_twn2/css/mobile/iphone.css

and add at its end:
Code: Select all
#gkMenuContent {display: block; position: relative; top: 0px;}
#gkNavContent {display: none !important;}
#gkNav {height: auto;}


I was only able to test this solution on iPhone, but I think You can copy this 3 lines also to android.css and handheld.css
User avatar
Moderator

GK User
Fri Jul 19, 2013 8:26 pm
Excellent! Exactly what I needed :D

Thanks! Topic solved! :D

Best regards,
S@
User avatar
Platinum Boarder


cron