New Zenner
- Join Date:
- Jan 2012
- Posts:
- 16
- Plugin Contributions:
- 0
Cant change links on top navigation bar
Hi there,
I am using "Elegance" template from 12leaves.com.
I would like to edit the top links from the navigation bar to:
Home, New Products, About, BLOG, View Cart, Contact
My website is: betterdecoratingbible.com/store
I have been told that i need to edit the tpl_header file but I do not know how to change the code and remove some of the links since its alot different than the default zen-cart theme. This is my code:
<?php /** * Template designed by 12leaves.com * 12leaves.com - Free ecommerce templates and design services * * Common Template * * @package languageDefines * @copyright Copyright 2009-2010 12leaves.com * @copyright Copyright 2003-2006 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_header.php 4813 2006-10-23 02:13:53Z drbyte $ */ ?> <?php // Display all header alerts via messageStack: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) { echo htmlspecialchars(urldecode($_GET['error_message'])); } if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) { echo htmlspecialchars($_GET['info_message']); } else { } ?> <!--bof-header logo and navigation display--> <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?> <div id="headerWrapper"><div id="logoWrapper"><div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
</div>
<div align="right" class="float-right cart-header-wrapper">
<!-- header cart section -->
<table align="right" class="align-center cart-header">
<tr>
<td>
<?php require($template->get_template_dir('tpl_shopping_cart_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_shopping_cart_header.php');
echo $content;
/*require($template->get_template_dir('tpl_box_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_box_header.php');*/?>
</td>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<td> |<td>
<td class="blue-link">
<a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a>
</td>
<?php }?>
</tr>
</table>
</div>
<div class="clearRight"></div>
<div id="login_logout_section" class="float-right">
<?php if ($_SESSION['customer_id']) { ?>
<ul class="list-style-none inline-list">
<li>
<?php echo(TOP_MENU_HELLO);?><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo ($_SESSION['customer_first_name'].' '.$_SESSION['customer_last_name']);?></a>
</li>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
</ul>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<?php echo LOGIN_WELCOME . ","; ?>
<a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>
<span> </span>
<?php echo REGISTER_WELCOME; ?>
<a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_REGISTER; ?></a>
<?php } } ?>
</div>
<div class="clearBoth"></div>
<!--eof-branding display-->
<!--eof-header logo and navigation display-->
<?php
if (CATEGORIES_TABS_STATUS == '0')
require($template->get_template_dir('tpl_top_nav.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_top_nav.php');
?>
<!--bof-optional categories tabs navigation display-->
<?php if (CATEGORIES_TABS_STATUS == '1')
require(DIR_WS_MODULES . zen_get_module_directory('categories_css.php'));
?>
<!--eof-optional categories tabs navigation display-->
</div>
<?php } ?>
If anyone can help me or change my code for me that would be really appreciated, thanks!! :smile::smile: