Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing Top »


MattMallory

Recommended Posts

I installed OSC in the root so there is no need for the "Top »". I would like to remove it from the top left navigation on all of the OSC pages BUT I would like to keep the breadcrumb->trail feature for the reset of the pages. Any ideas on how to do this?

 

I pulled the below line of code out of the includes\header.php

 

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

Knowledge is Power!

Link to comment
Share on other sites

Okay, I just did something very similar about two hours ago - now let's see if I can remember it all? Firstly, there are two links, Top and Catalog (Catalogue in English/English). Go to Tools - Define Languages - in English.php where it says "define('HEADER_TITLE_CATALOG', 'Catalog');" change 'catalog' to 'Home' (which is much more appropriate). Go to File Manager, and open the 'Includes' directory. In application_top.php, where it says "$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

$breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));" Just add two forward slashes in front, to rem out the 'Top' listing e.g. "//$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

$breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));" Now you have only one link on the top left of the nav bar, and where it used to say 'Catalog' it now says 'Home' - and your breadcrumb trail stays intact. Hope this helps. Vger

Link to comment
Share on other sites

Okay, I just did something very similar about two hours ago - now let's see if I can remember it all? Firstly, there are two links, Top and Catalog (Catalogue in English/English). Go to Tools - Define Languages - in English.php where it says "define('HEADER_TITLE_CATALOG', 'Catalog');" change 'catalog' to 'Home' (which is much more appropriate). Go to File Manager, and open the 'Includes' directory. In application_top.php, where it says "$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

$breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));" Just add two forward slashes in front, to rem out the 'Top' listing e.g. "//$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

$breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));" Now you have only one link on the top left of the nav bar, and where it used to say 'Catalog' it now says 'Home' - and your breadcrumb trail stays intact. Hope this helps. Vger

Excellent tip, thank you.

 

:)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...