Zen cart templates & services blog

How to delete navigation menu contents on ‘Pure’ free zen cart templates by zen-cart-power

To delete the items (names) listed on the navigation bar of ‘Pure’ free zen cart templates (Home, New products, Specials, Featured products, My account, View cart):

Navigation menu on Pure free zen cart templates by zen-cart-power

We consider here PureBlue template ver 2.0, for other Pure variations (black, orange, orange2, green, aqua) simply change the ‘pure_blue’ into ‘pure_black’, ‘pure_orange’, ‘pure_orange2′, ‘pure_green’, ‘pure_aqua’ correspondingly in the path to  ’tpl_top_nav.php’ file.

It is required to find

[Your Zen Cart folder]\includes\templates\pure_blue\templates\tpl_top_nav.php’ file and delete the following code:

for ‘Home’:

<?php
if ($this_is_home_page) { $active = 'tab_active';
	} else { $active = '';
}?>
	<li id="<?php echo $active;?>"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>

for ‘New products’:

<?php
if ($current_page_base == 'products_new') {	$active	= 'tab_active';
	} else { $active = '';
}?>
		<li id="<?php echo $active;?>"><a href="index.php?main_page=products_new"><?php echo TOP_MENU_NEW_PRODUCTS;?></a></li>

for ‘Specials’:

<?php
if ($current_page_base == 'specials') { $active = 'tab_active';
	} else { $active = '';
}?>
		<li id="<?php echo $active;?>"><a href="index.php?main_page=specials"><?php echo TOP_MENU_SPECIALS;?></a></li>

for ‘Featured products’:

<?php
if ($current_page_base == 'featured_products') { $active = 'tab_active';
	} else { $active = '';
}?>
		<li id="<?php echo $active;?>"><a href="index.php?main_page=featured_products"><?php echo TOP_MENU_FEATURED_PRODUCTS;?></a></li>

for ‘My account’:

<?php
if ($current_page_base == 'account' || $current_page_base == 'login' || $current_page_base == 'account_edit' || $current_page_base == 'address_book' || $current_page_base == 'account_password' || $current_page_base == 'account_newsletters' || $current_page_base == 'account_notifications') { $active = 'tab_active';
	} else { $active = '';
}?>
		<li id="<?php echo $active;?>"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo TOP_MENU_MY_ACCOUNT;?></a></li>

for ‘View cart’:

<?php
if ($current_page_base == 'shopping_cart') { $active = 'tab_active';
	} else { $active = '';
}?>
		<li id="<?php echo $active;?>"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo TOP_MENU_VIEW_CART;?></a></li>

for ‘English (in other words languages)’:

<div class="languages float-right">
  <?php require($template->get_template_dir('tpl_header_languages.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_header_languages.php');
				echo $content;?>
</div>

2 Comments
  1. Pingback: 5 Important Rules in Website Design | FREE BLOG

  2. Veniss says:

    Hi..lets say i want to add another menu.. maybe name Gallery..how do i add in to the menu? I tried copying featured products code and link up to my new page, It does appear in the menu, but something is not right on the current_page_base.

    Appreciate if you can help

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2008-2010 Newlement - e-commerce services