How to change the menu on the mobile version?

GK User
Fri Apr 13, 2012 6:23 pm
Hi,

For the mobile version of the site I want to use a different menu than the one selected in the template for the desktop version. Is there a way to select which menu is used in the mobile version?

Thanks!
User avatar
Junior Boarder

teitbite
Mon Apr 16, 2012 7:20 am
Hi

In joomla 1.5 the only way to make it is to use a module position "mobile_top" and display a mod_mainmenu. But this will require couple of css adjustments to copy the style. Unfortunately it's considered as customization and we do not support that. Try it anyway. Maby You will like the raw style of it.
User avatar
Moderator

GK User
Tue Apr 17, 2012 1:58 am
Hi teitbite,

I tried your suggestion of setting up a mod_mainmenu menu in the mobile_top position, but I'm still seeing the default template menu. I'm attaching a screenshot of my module configuration...Am I missing anything?

Image

Image
User avatar
Junior Boarder

teitbite
Tue Apr 17, 2012 3:46 am
Hi

No You are not missing anything :) It was just the first step. Now please go to /layouts and edit iphone.php and handheld.php and remove this line:

Code: Select all
         <?php $this->loadBlock('iphone/mainnav') ?>
User avatar
Moderator

GK User
Wed Apr 18, 2012 2:17 am
Ok, I removed the line. Now the menu doesn't show on the mobile version...I have a feeling there's a third step? :)
User avatar
Junior Boarder

GK User
Wed Apr 18, 2012 2:26 am
Nevermind, I had a typo. The third step was for me to fix my error :)

You're right, this menu is kind of raw. I'll try to make the best out of it.

Thank you for your help teitbite!
User avatar
Junior Boarder

teitbite
Thu Apr 26, 2012 2:12 am
Hi

No problem. Glad I could help :)
User avatar
Moderator


cron