eangee Posted January 21, 2006 Posted January 21, 2006 On the top bar in osCommerce there is a standard breadcrumb linking system. I want to remove that. Instead, I want a link for "Home" and a link for each one of my catagories. How do I do that? Any help is appreciated. Thanks, Shay
tina_boots Posted January 21, 2006 Posted January 21, 2006 On the top bar in osCommerce there is a standard breadcrumb linking system. I want to remove that. Instead, I want a link for "Home" and a link for each one of my catagories. How do I do that? Any help is appreciated. Thanks, Shay The code to display the breadcrumb trail can be found in your includes/header.php file, at or near line 63: <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> Be well, Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes.
eangee Posted January 21, 2006 Author Posted January 21, 2006 Tina, Thank you for your help. When I remove that line, the breadcrumb disapears. Now, how do I add a link on that same bar to my home page, and a separate link to each of my catagories? Thanks, Shay The code to display the breadcrumb trail can be found in your includes/header.php file, at or near line 63: <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> Be well, Tina
Megabit Posted January 21, 2006 Posted January 21, 2006 I don't know much about this type of thing but I think you would just modify that line instead of removing it. Something like: <td <?php echo ('<a href="http://www.mydomain.com">my domain</a>'); ?></td> Tina, Thank you for your help. When I remove that line, the breadcrumb disapears. Now, how do I add a link on that same bar to my home page, and a separate link to each of my catagories? Thanks, Shay
RaynSoh Posted January 23, 2006 Posted January 23, 2006 Tina, Thank you for your help. When I remove that line, the breadcrumb disapears. Now, how do I add a link on that same bar to my home page, and a separate link to each of my catagories? Thanks, Shay Hi Shay, To answer ur question, u can find the codes to change the link at /includes/applications_top.php find this line of code; $breadcrumb = new breadcrumb; after this line u see the coding $breadcrumb->add, for example, if u change this to $breadcrumb->add("Home", "http://mydomain.com/home.php"); the link will be redirected to tat URL.. but unless ur very sure what u are doing, I do not recommend changing the codings below this which determines which category u are in. Cheers! Rayn
eangee Posted January 24, 2006 Author Posted January 24, 2006 I went to header.php I started with this: <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> I changed it to this: <td class="headerNavigation"> <?php echo ('<a href="http://www.eangee.com">home</a>');?></td> The breadcrumb links went away and I was left with a single link that takes you "home." You can see what it looks like on my test page. How do I add additional links behind it to other pages? Hi Shay, To answer ur question, u can find the codes to change the link at /includes/applications_top.php find this line of code; $breadcrumb = new breadcrumb; after this line u see the coding $breadcrumb->add, for example, if u change this to $breadcrumb->add("Home", "http://mydomain.com/home.php"); the link will be redirected to tat URL.. but unless ur very sure what u are doing, I do not recommend changing the codings below this which determines which category u are in. Cheers! Rayn
COOLumbia Posted January 25, 2006 Posted January 25, 2006 I don't know much about this type of thing but I think you would just modify that line instead of removing it. Something like: <td <?php echo ('<a href="http://www.mydomain.com">my domain</a>'); ?></td> I just want to change the word "TOP" to "HOME". That should be pretty easy, if I could just find where the word "TOP" is located....
Guest Posted January 25, 2006 Posted January 25, 2006 Find your catalog/includes/languages/PICKYOURLANGUAGE.php file. In there is a section that says //// header text in includes/header.php One of those is Top, change it to Home
COOLumbia Posted January 25, 2006 Posted January 25, 2006 Find your catalog/includes/languages/PICKYOURLANGUAGE.php file. In there is a section that says //// header text in includes/header.php One of those is Top, change it to Home Thanks, that worked fine!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.