Select a different menu for Mobile menu

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Apr 23, 2013 6:53 am
Reply with quote
Report this post
Hi
How do I select an alternative menu for the mobile menu?

I am running a older version (3.3) of the temple but I do not want to upgrade as i have made a lot of tweaks

Can I hide the Mobile menu with the nomobile string?

http://112.140.180.21/~watersh1/

Any help greatly appreciated.

Mike
User avatar
Fresh Boarder

GK User
Tue Apr 23, 2013 11:30 am
Reply with quote
Report this post
I don't have a mobile device to test this yet but try following.


Css selector for mobile menu is "gkMobileMenu" so you can add that in to mobile.css which should hide it.

Code: Select all
#gkMobileMenu { display:none;}


You can also try editing "/templates/gk_bikestore/layouts/default.php"
Lines: 97 try changing "mainmenu" menu name to your mobile menu name in demo it is "mobile-menu".
Code: Select all
                    $this->mobilemenu->loadMenu($this->API->get('menu_name','mainmenu'));

Code: Select all
                    $this->mobilemenu->loadMenu($this->API->get('menu_name','mobile-menu'));


Let us know how you get on. See you around...
User avatar
Platinum Boarder

GK User
Tue Apr 23, 2013 3:58 pm
Reply with quote
Report this post
normanUK wrote:I don't have a mobile device to test this yet but try following.


Css selector for mobile menu is "gkMobileMenu" so you can add that in to mobile.css which should hide it.

Code: Select all
#gkMobileMenu { display:none;}


You can also try editing "/templates/gk_bikestore/layouts/default.php"
Lines: 97 try changing "mainmenu" menu name to your mobile menu name in demo it is "mobile-menu".
Code: Select all
                    $this->mobilemenu->loadMenu($this->API->get('menu_name','mainmenu'));

Code: Select all
                    $this->mobilemenu->loadMenu($this->API->get('menu_name','mobile-menu'));


Let us know how you get on. See you around...



the second option seems to be the solution to me but I put my mobile-menu in as instructed and it still uses main menu. Any ideas

112.140.180.21/~watersh1/

Thanks for the prompt reply.
User avatar
Fresh Boarder

GK User
Tue Apr 23, 2013 4:41 pm
Reply with quote
Report this post
I can only test this when my phone comes back from service I am afraid as I have nothing to test it with.

I ll post here when I can, sorry about this.

See you around...
User avatar
Platinum Boarder

GK User
Tue Apr 23, 2013 4:56 pm
Reply with quote
Report this post
Just checking on normal desktop version which worked fine. Try changing following code.

From :
Code: Select all
$this->mobilemenu->loadMenu($this->API->get('menu_name','mobile-menu'));

To:
Code: Select all
$this->mobilemenu->loadMenu('mobile-menu');


Let me know if this works. See you around...
User avatar
Platinum Boarder

GK User
Tue Apr 23, 2013 5:41 pm
Reply with quote
Report this post
Awesome. You rock.

Many thanks
Mike
User avatar
Fresh Boarder

GK User
Tue Apr 23, 2013 5:55 pm
Reply with quote
Report this post
No problem at all, see you around...
User avatar
Platinum Boarder


cron