Forums / Templates, Stylesheets, Page Layout / Mobile version information links set to auto show

Mobile version information links set to auto show

Views: 1,421

Results 1 to 6 of 6
23 Apr 2016, 1:33 AM
#1
vvomble avatar

vvomble

Zen Follower

Join Date:
Feb 2013
Posts:
111
Plugin Contributions:
1

Mobile version information links set to auto show

I'm trying to figure out how to make it so the information links for the mobile version of http://predator-charters.uk loads as being open also I want to remove the permanent links from the menu too.

Any help greatly appreciated as it's got me confused.

23 Apr 2016, 6:53 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Mobile version information links set to auto show

I do not understand what you mean by "loads as being open" or what menu you are referring to in "I want to remove the permanent links from the menu"

If you have firefox as a browser get the web tools and then you can select resize > view responsive layouts

You can view your site on different devices at many online sites this is just one
http://mobiletest.me/

Zen-Venom Get Bitten

23 Apr 2016, 11:49 AM
#3
vvomble avatar

vvomble

Zen Follower

Join Date:
Feb 2013
Posts:
111
Plugin Contributions:
1

Re: Mobile version information links set to auto show

I do that with chrome and my mobile viewing it as a mobile site isn't the issue.

The issues: I want the sub menu links to information to be visible as soon as the menu bar is opened.

I also want to remove the important links link from the menu

These are both for when viewing it from a mobile device instead of desktop.

23 Apr 2016, 12:48 PM
#4
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Mobile version information links set to auto show

When posting, it usually helps to post in the "Template Specific" [Support Thread] this way we know what sub menu on what menu bar you are talking about.

Or at least provide the needed information so we can assist.

vvomble:

I do that with chrome and my mobile viewing it as a mobile site isn't the issue.

The issues: I want the sub menu links to information to be visible as soon as the menu bar is opened.

I also want to remove the important links link from the menu

These are both for when viewing it from a mobile device instead of desktop.

23 Apr 2016, 1:06 PM
#5
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Mobile version information links set to auto show

As a rule of thumb I don't usually click links to websites, I have all these templates installed so I can document and keep track of bug fixes, feature requests and ect.

anyways for keeping a sub-menu open at all times

open:

/includes/templates/responsive_classic/templates/tpl_modules_mobile_menu.php

find:

    <li><span><?php echo BOX_HEADING_INFORMATION; ?></span>

add the class mm-opened like so:

    <li class="mm-opened"><span><?php echo BOX_HEADING_INFORMATION; ?></span>

The Information Links wasn't added using any of the ez-page status configs so you have allot of options here but I'll provide the 2 easiest.

find:

    <li><span><?php echo BOX_HEADING_EZPAGES; ?></span>

and change to:

    <li style="display:none;"><span><?php echo BOX_HEADING_EZPAGES; ?></span>

or

comment out that entire <li> like so:

<!-- <li><span><?php echo BOX_HEADING_EZPAGES; ?></span>
      <ul>
<?php
  include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_header.php'));
  if (sizeof($var_linksList) >= 1) {
    for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) {
      echo '<li><a href="' . $var_linksList[$i]['link'] . '">' . $var_linksList[$i]['name'] . '</a></li>' . "\n";
    }
  }
?>
      </ul>
    </li> -->

vvomble:

I do that with chrome and my mobile viewing it as a mobile site isn't the issue.

The issues: I want the sub menu links to information to be visible as soon as the menu bar is opened.

I also want to remove the important links link from the menu

These are both for when viewing it from a mobile device instead of desktop.

23 Apr 2016, 2:47 PM
#6
vvomble avatar

vvomble

Zen Follower

Join Date:
Feb 2013
Posts:
111
Plugin Contributions:
1

Re: Mobile version information links set to auto show

sorted and learnt a lot along the way thanks guys