Thanks gjh42, that sounds very complicated I dont think I could do it. But thanks anyway.
Thanks gjh42, that sounds very complicated I dont think I could do it. But thanks anyway.
This would be one arrangement that could work:
(/includes/templates/your_template/templates/tpl_modules_categories_tabs.php)PHP Code:
<?php
/**
* Module Template - categories_tabs
*
* Template stub used to display categories-tabs output
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_modules_categories_tabs.php 3395 2006-04-08 21:13:00Z ajeh $ modified 2010-07-16 gjh42
*/
include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORIES_TABS));
?>
<?php if (CATEGORIES_TABS_STATUS == '1' && sizeof($links_list) >= 1) { ?>
<div id="navCatTabsWrapper">
<div id="navCatTabs">
<ul>
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">';//line moved from tpl_header ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php for ($i=0, $n=sizeof($links_list); $i<$n; $i++) { ?>
<li><?php echo $links_list[$i];?></li>
<?php } ?>
<?php if ($_SESSION['customer_id']) {//section moved from tpl_header ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } }//end section moved from tpl_header ?>
</ul>
</div>
</div>
<?php } ?>
Hello Glen,
I dont have the route you suggest, I have
/includes/templates/your_template/sideboxes/tpl_categories (without background for sub-cats).tpl_categories.php
or
/includes/templates/your_template/sideboxes/tpl_categories.php
Which one shuld I use or do I need to create the one that you suggest?
Thanks,
Csenge
Save the file in exactly the path I noted (adjust "your_template" to your actual template name). The one you describe is for the categories menu in the sidebar.
Hi gjh42,
thanks, now all the categories/headings i want are in one line except Contact Us. Is there any way you could add that. And then how can i disable the original Home/Contact Us/Log in line? Sorry to be a pain.
The standard Zen Cart header nav does not have a contact us link. You could add a line like this (alter if you know something that needs to be different) inside the <ul> list in the position you want it:You can delete the entire sectionPHP Code:
<li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CONTACT_US; ?></a></li>
<!--bof-navigation display-->
...
<!--eof-navigation display-->
from tpl_header.php.
Thanks Glen, that works Thanks for all your help!!
Csenge
Is there anyway just to turn the header navigation bar off in the admin? You can do this for Categories etc - Does it pose a problem as a default setup as this is where the login menu is and therfore was not built to be turned off?
This cannot be turned off in admin, as there are several links there that are not necessarily available anywhere else without customization.
Bookmarks