Guest Posted April 14, 2004 Posted April 14, 2004 Hi, How to add a Home Link on the top next to My Account | Cart Contents | Checkout? Thanks ahead.... :blink:
bluepony Posted April 14, 2004 Posted April 14, 2004 Add this in Header.php around line 58 right before the other links <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">Home</a> '; ?> I'd rather be flying!
Guest Posted April 14, 2004 Posted April 14, 2004 Can you tell me a little bit more detail? I could npt make it work...Thanks
♥Vger Posted April 14, 2004 Posted April 14, 2004 That code should work alright, but why do you need it? You should already have a 'Home' link to the left of those links in the top nav bar. Also, the logo you use at the top of the page is also a home link. If you are using the basic install, then you'll probably have two links to the left, one saying 'Top' the other saying 'Catalog', and the Ctalog link is the Home link. In your osCommerce admin panel go to Define Languages, then select english.php (if it's an English language website), then scroll down unti you find define('HEADER_TITLE_CATALOG', 'Catalog'); and change this to define('HEADER_TITLE_CATALOG', 'Home'); Then in includes/application_top.php scroll down almost to the bottom, and where it says $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); change this to //$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); to rem out the 'Top' link from the nav bar, and all you are now left with is a 'Home' link to the index.php file. Hope this helps - Vger
Recommended Posts
Archived
This topic is now archived and is closed to further replies.