caspernova Posted April 1, 2006 Posted April 1, 2006 i want to change "Top" and "Catalog" to say "Home" and "Products" in the navigation bar above the left column. How do i do this? Thanks!
caspernova Posted April 1, 2006 Author Posted April 1, 2006 Nevermind... just figured it out... go into "english.php" and change HEADER_TITLE_TOP
stevel Posted April 2, 2006 Posted April 2, 2006 If your store is your site (you don't have a separate store under the main site), you can remove one of the breadcrumb->add calls in application_top.php. Remember - nearly every piece of fixed text in osC comes from one of the languages files. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
Guest Posted April 2, 2006 Posted April 2, 2006 If your site is sitting in public_html on your site, 'top' will only send the visitor back to your document root, which is no good to them. You can remove 'top' by editting the includes/application_top file. At about line 508 look for $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); Comment out this line thus // $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); This will remove the 'top' from your breadcrumb. To change your 'catalog' word to whatever you want go to includes/languages/english.php (or whatever language you are using) and alter the following (line 57 on mine) define('HEADER_TITLE_CATALOG', 'Catalog'); to something like define('HEADER_TITLE_CATALOG', 'Home'); Hope this helps.
Guest Posted April 2, 2006 Posted April 2, 2006 Sorry stevel. Was busy bashing away and did not see your post.
stevel Posted April 2, 2006 Posted April 2, 2006 If your site is sitting in public_html on your site, 'top' will only send the visitor back to your document root, which is no good to them. Perhaps I am not understanding you here, but I don't agree with this statement. Top brings you to whatever HTTP_SERVER would. Typically that's whatever's in "public_html" or equivalent, what you would see if you typed in just the domain name. For many stores, that IS the correct place to send people. If however you have a main site and a store underneath (catalog/ or store/ or something like that), then the Top and Catalog breadcrumbs make sense, as they go different places. For my store, which does not have a separate catalog subdirectory, I have just one "Home" link in the breadcrumb that takes users to the store's home page. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
Guest Posted April 2, 2006 Posted April 2, 2006 Must be the way that my host has set up my public_html. I tested 'top on my site as soon as I installed and it took me to my root directory. Same happened on my test server at home. My public files sit directly in public_html and not in a subdirectory. Perhaps that is the reason. sorry if this has confused people. Maybe it should be tested by anyone who has just loaded osCommerce.If 'top takes you to the home page, then just redefine 'top in english.php. If it does return you to your root directory, then comment it out. If you feel that this is too confusing, let me know and I will remove my posts. Thanks stevel
stevel Posted April 2, 2006 Posted April 2, 2006 Your public files should sit in public_html. If just typing in your domain name takes you to a "root directory" that doesn't have your web pages in it, that's a configuration error by your host. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
Guest Posted April 2, 2006 Posted April 2, 2006 No. My domain name takes me to index.php as it should. Must be in the way that the breadcrumb trail is set up somehow (it could be in my file copy on the test server as some files from there have been sent to my working site) . Will look into it. Thanks again. BTW. I noticed a site in the 'my store' thread yesterday with the same problem. Looks like it as been fixed since then. I did notice that quite a few sites now are doing away with the breadcrumb.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.