Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing Bread Crumb and Inserting a Standard Link


eangee

Recommended Posts

Posted

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

Posted
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.

Posted

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

Posted

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

Posted
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

Posted

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

Posted
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....

Posted

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

Posted
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!

Archived

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

×
×
  • Create New...