Forums / Templates, Stylesheets, Page Layout / Method to show only subcategories in mobile menu Responsive Classic Stock 1.55f

Method to show only subcategories in mobile menu Responsive Classic Stock 1.55f

Views: 2,291

Results 1 to 4 of 4
3 Mar 2018, 7:13 PM
#1
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Method to show only subcategories in mobile menu Responsive Classic Stock 1.55f

To show** only **the subcategories when you select the three bars - mobile menu that ships with Zen Cart 1.55f

includes/templates/responsive_classic/templates/**tpl_modules_mobile_menu.php
**
**Replace line 33 **
<li><span><?php echo BOX_HEADING_CATEGORIES; ?></span>

With this:

<!-- Remove first tier of mobile nav categories box <li><span><?php echo BOX_HEADING_CATEGORIES; ?></span> -->

Now the top category will be hidden and the subcategory will show.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

2 Jan 2019, 4:47 AM
#2
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Method to show only subcategories in mobile menu Responsive Classic Stock 1.55f

twitchtoo:

To show** only **the subcategories when you select the three bars - mobile menu that ships with Zen Cart 1.55f

includes/templates/responsive_classic/templates/**tpl_modules_mobile_menu.php
**
**Replace line 33 **
<li><span><?php echo BOX_HEADING_CATEGORIES; ?></span>

With this:

<!-- Remove first tier of mobile nav categories box <li><span><?php echo BOX_HEADING_CATEGORIES; ?></span> -->

Now the top category will be hidden and the subcategory will show.

Have search for hours and tried many tweaks to accomplish the 2 below functions but no joy!
Finally came across this post which looks close to what I need to do.
1:
Hide individual Top Categories when I select the three bars - mobile menu that ships with Zen Cart 1.55f and ZC v1.5.6.
2:
Display a Top Category but make it un-clickable in that same menu?

Initially posted in the responsive thread but no response.
Any guidance would be greatly appreciated.

5 Jan 2019, 2:25 AM
#3
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Method to show only subcategories in mobile menu Responsive Classic Stock 1.55f

twitchtoo:

To show** only **the subcategories when you select the three bars - mobile menu that ships with Zen Cart 1.55f

includes/templates/responsive_classic/templates/**tpl_modules_mobile_menu.php
**
**Replace line 33 **
<li><span><?php echo BOX_HEADING_CATEGORIES; ?></span>

With this:

<!-- Remove first tier of mobile nav categories box <li><span><?php echo BOX_HEADING_CATEGORIES; ?></span> -->

Now the top category will be hidden and the subcategory will show.

That kinda does the opposite of what I want to do.
1:
Hide individual Top Categories in the three bars - mobile menu that ships with Zen Cart 1.55f and ZC v1.5.6.
2:
Display a Top Category in that hambuger menu but make it un-clickable in that same menu?

23 Oct 2020, 7:40 PM
#4
allmart avatar

allmart

Zen Follower

Join Date:
Feb 2016
Location:
Canada
Posts:
192
Plugin Contributions:
0

Re: Method to show only subcategories in mobile menu Responsive Classic Stock 1.55f

I am hoping that someone has had success with hiding a particular category in the mobile menu and share what they did. Thanks.