0
Welcome Guest! Login
0 items Join Now

SOLVED Turn off drop-down menu 4 mobiles in Gantry4 ?

  • SOLVED Turn off drop-down menu 4 mobiles in Gantry4 ?

    Posted 12 years 3 weeks ago
    • Hello,

      How do I stop the Gantry 4 template from switching to a drop down menu when the site is being viewed on a mobile platform.

      I know RT are working on a new menu component but until then how can I keep the same menu for all sizes?

      Thanks!

      Paul
    • Last Edit: 12 years 3 weeks ago by Paul Davis.
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: SOLVED Turn off drop-down menu 4 mobiles in Gantry4 ?

    Posted 12 years 3 weeks ago
    • Edit file /templates/gantry/features/fusionmenu.php

      Find the following code at the end of the file
      if (!($gantry->browser->name == 'ie' && $gantry->browser->shortver <= 8)){
                          $reg->set('style', 'mobile');
                          $module->params = $reg->toString();
                          $rendered_menu .= $renderer->render($module, array('style', 'mobile-menu-block'));
                }

      and comment it
      /*          if (!($gantry->browser->name == 'ie' && $gantry->browser->shortver <= 8)){
                          $reg->set('style', 'mobile');
                          $module->params = $reg->toString();
                          $rendered_menu .= $renderer->render($module, array('style', 'mobile-menu-block'));
                }
      */

      Edit file /templates/gantry/less/mediaqueries.less
      // Menu
                .menu-block {display: none;}

      Change to:
      // Menu
                //.menu-block {display: none;}

      Clear Joomla cache at the end 8)
    • Check my services at: Mihha-Vision
  • Re: SOLVED Turn off drop-down menu 4 mobiles in Gantry4 ?

    Posted 12 years 3 weeks ago
    • That's great thanks but I miscommunicated my problem, sorry. :oops:

      What I would like to do is to keep the main menu showing even on a mobile platform.

      Thanks

      Paul
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: SOLVED Turn off drop-down menu 4 mobiles in Gantry4 ?

    Posted 12 years 3 weeks ago
    • And that is exactly what you will get with my suggested changes 8)
    • Check my services at: Mihha-Vision
  • Re: SOLVED Turn off drop-down menu 4 mobiles in Gantry4 ?

    Posted 12 years 3 weeks ago
    • Hi Igor,

      Sorry, when I make your suggested changes and shrink the screen to mobile size the fusion menu just disappears. I will PM you the URL.

      Thanks

      Paul
  • Re: SOLVED Turn off drop-down menu 4 mobiles in Gantry4 ?

    Posted 12 years 3 weeks ago
    • Hi Igor,

      I eventually got the response I required by this simple change to:

      /templates/gantry/less/mediaqueries.less
      .menu-block {display: none;}

      to
      .menu-block {display: inherit;}

      Thanks

      Paul
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: SOLVED Turn off drop-down menu 4 mobiles in Gantry4 ?

    Posted 12 years 3 weeks ago
    • OK. That is exactly what I suggested you should do 8)

      Please EDIT your FIRST POST in this thread by adding [SOLVED] at the start of the title and then select the GREEN TICK icon.

      This lets the moderators know that it can be moved to the solved section.
    • Check my services at: Mihha-Vision
  • Re: SOLVED Turn off drop-down menu 4 mobiles in Gantry4 ?

    Posted 12 years 3 weeks ago
    • Will do. BTW re-read your original reply. You suggested just commenting out
      .menu-block {display: none;}

      I guess you made a typo? Anyway thanks for the pointer and help nonetheless :)
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: SOLVED Turn off drop-down menu 4 mobiles in Gantry4 ?

    Posted 12 years 3 weeks ago
    • Yes, but commenting out that line is effectively the same thing as "display:inherit" in this case 8)
    • Check my services at: Mihha-Vision
  • Re: SOLVED Turn off drop-down menu 4 mobiles in Gantry4 ?

    Posted 11 years 7 months ago
    • Hi

      I am trying to get this fix to work on the Rockettheme lumiere template. My client does not want the default mobile menu -- so I am getting rid of it completely and using a different menu system for phone and cell, (etc.)

      But the file system on Lumiere appears to be different and I can't find the various code modifications anywhere in the Lumiere files.

      Using Gantry 4.1.8.

      Any suggestions?

      Thanks

      Rowby
    • www.rowby.com

Time to create page: 0.058 seconds