
Originally Posted by
linuxguy2
New Question...
As I am only using the left side box for "Categories" I also moved the "All Products" listing to the top of the categories list which I've been able to do with a couple tweaks to reponsive_classic/sideboxes/tpl_categories.php.
"All Products" is the only other thing I am displaying in the left column and I needed it to be at the top of the Categories list.
All morning I've been trying to do the same for "mobile" devices (iPhone) but haven't been able to figure out how to do that. Due to my limited coding experience I could use some guidance.
Am I correct that the "Mobile" menu is built on the fly with "categories_ul_generator.php".
Seems like there should be an edit to "tpl_modules_mobile_menu.php" that will do the trick?
An edit to a core file is OK as this is a one time custom job.
Thanks,
Yes:
includes/templates/YOUR_TEMPLATE/templates/tpl_modules_mobile_menu.php
line 83 - 85
PHP Code:
<?php if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') { ?>
<li><a class="category-links" href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL); ?>"><?php echo CATEGORIES_BOX_HEADING_PRODUCTS_ALL; ?></a></li>
<?php } ?>
Move this to line 15 after the initial unordered list tag:
PHP Code:
<nav id="menu">
<ul>
<?php if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') { ?>
<li><a class="category-links" href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL); ?>"><?php echo CATEGORIES_BOX_HEADING_PRODUCTS_ALL; ?></a></li>
<?php } ?>
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
To put it at the very top all the time... only if you have it turned on in admin using the - SHOW_CATEGORIES_BOX_PRODUCTS_ALL - db switch.
Just paste the <li> ... </li> without the php - if you want to bypass the switch.
Bookmarks