Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing the "top" link from the header navigation


davelutz

Recommended Posts

I just upgraded from 2.1 to 2.2. Nice job on the new features and stability! Thanks.

 

I'm stuck on one item, though. The header navigation shows Top >> Catalog >> etc. and I do not want Top to be displayed. I would like catalog to be the top navigation element. I was able to remove the display of Top from 2.1, but can't figure it out in 2.2. It seems to have something to do with the breadcrumb variable, but it's a bit over my head.

 

Thanks for any suggestions!

 

Dave

Link to comment
Share on other sites

Figured it out. For others, here's what I did. Comment out the top level nav (Top) and rename Catalog to Top.

 

Look for this in catalog/includes/application_top.php

 

require(DIR_WS_CLASSES . 'breadcrumb.php');

$breadcrumb = new breadcrumb;

 

$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

$breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

 

And change it to this

 

require(DIR_WS_CLASSES . 'breadcrumb.php');

$breadcrumb = new breadcrumb;

 

// $breadcrumb->add(HEADER_TITLE_TOP, 'http://www.yourlink.com' );

$breadcrumb->add(HEADER_TITLE_TOP, tep_href_link(FILENAME_DEFAULT));

Link to comment
Share on other sites

  • 3 weeks later...

Did anyone get this to actually work? I have the same problem, I need to remove the 'Top' link and rename "Catalog". The mod suggested above does not seem to apply to my code (breadcrumb - what's all that about then?).

 

Thanks.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...