Forums / Templates, Stylesheets, Page Layout / Changing a breadcrumb link

Changing a breadcrumb link

Locked

Started by joanna on 24 Oct 2007, 2:13 AM · Views: 3,641

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
24 Oct 2007, 2:13 AM
#1
joanna avatar

joanna

New Zenner

Join Date:
Oct 2007
Posts:
13
Plugin Contributions:
0

Changing a breadcrumb link

I have spent all day going through the forum and FAQs and although many threads address this issue, I have been unable to resolve it.

I would like to change the link of the breadcrumb 'Home' to a different link. How do I do this? I've succeeded in changing the name, but not the link.

I would be eternally grateful for any help.

Joanna

24 Oct 2007, 12:01 PM
#2
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Changing a breadcrumb link

The link is generated dynamically. If you want to point it to a different page, depending on what that is, you may need to hard code it.

However, here is where you should start:

/includes/classes/breadcrumbs.php

You'll find some commented text in there to indicate the line that generates the Home link. Alter as needed to point to the url you desire.

Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information

24 Oct 2007, 3:49 PM
#3
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Changing a breadcrumb link

Why do you want to change it? Having a home link helps the customer get back to the "front" of the store. Are you sure you want to change that?

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

25 Oct 2007, 2:32 PM
#4
joanna avatar

joanna

New Zenner

Join Date:
Oct 2007
Posts:
13
Plugin Contributions:
0

Re: Changing a breadcrumb link

I am wanting to change this because the Home link is sending me to /store/ when I need it to be pointing towards /store.index.php.

Is this something that I messed up - it's entirely possible!

I tried changing the link in breadcrumbs.php to no avail. Can you show me exactly what I should be changing... maybe I'm not doing it right...

Thanks!
Joanna

25 Oct 2007, 3:16 PM
#5
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Changing a breadcrumb link

/store.index.php? Does that exist? If the link is sending you to /store/, it should automatically load index.php (the first page you see when you "enter" the store).

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

25 Oct 2007, 3:51 PM
#6
joanna avatar

joanna

New Zenner

Join Date:
Oct 2007
Posts:
13
Plugin Contributions:
0

Re: Changing a breadcrumb link

Sorry... /store/index.php
So for some reason, then, it's not loading index.php
Any idea why?

25 Oct 2007, 4:39 PM
#7
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Changing a breadcrumb link

Is there a /store/index.html file? If so, rename it and see if that does the trick.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

26 Oct 2007, 3:31 PM
#8
joanna avatar

joanna

New Zenner

Join Date:
Oct 2007
Posts:
13
Plugin Contributions:
0

Re: Changing a breadcrumb link

There isn't. There's just a store/index.php file
Any other ideas?

26 Oct 2007, 3:33 PM
#9
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Changing a breadcrumb link

Can you post a link to the site? If you don't want to post it on the forum, you could send it to me in a PM.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

26 Oct 2007, 3:55 PM
#10
joanna avatar

joanna

New Zenner

Join Date:
Oct 2007
Posts:
13
Plugin Contributions:
0

Re: Changing a breadcrumb link

Sure:
http://mydigitaladdiction.com/downloads/index.php
I'm just getting started... I call my 'store' Downloads.
Thanks so much for helping out.
Joanna

26 Oct 2007, 4:13 PM
#11
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Changing a breadcrumb link

Very pretty site!

Very odd behavior for that link. In includes/templates/YOUR_TEMPLATE/common/tpl_header.php, you probably have something like

<div id="navMain">
    <ul class="back">
    <li><a href="http://mydigitaladdiction.com/downloads/">Downloads</a></li>

Change it to

<div id="navMain">
    <ul class="back">
    <li><a href="http://mydigitaladdiction.com/downloads/index.php">Downloads</a></li>

I don't know why it's not picking up the index.php automatically. I have something similar on a site I'm working on and it seems to be fine.

You don't want people seeing the directory structure like that. It's a security risk.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

26 Oct 2007, 4:24 PM
#12
joanna avatar

joanna

New Zenner

Join Date:
Oct 2007
Posts:
13
Plugin Contributions:
0

Re: Changing a breadcrumb link

Thanks for the compliment and your help.
You rock!

22 May 2008, 3:56 PM
#13
marypotter avatar

marypotter

New Zenner

Join Date:
May 2008
Location:
Virginia Beach, Virginia, United States
Posts:
52
Plugin Contributions:
0

Re: Changing a breadcrumb link

I was wondering if you could tell me how you changed the text of "home" in the breadcrumb trail to "download". I want to change my link name to something else, but I don't know how. Please help. Thanks!

22 May 2008, 4:04 PM
#14
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Changing a breadcrumb link

Look in includes/templates/YOUR_TEMPLATE/common/tpl_header.php.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

22 May 2008, 4:13 PM
#15
marypotter avatar

marypotter

New Zenner

Join Date:
May 2008
Location:
Virginia Beach, Virginia, United States
Posts:
52
Plugin Contributions:
0

Re: Changing a breadcrumb link

i figured it out! thanks. this whole thread has been very helpful! thank you everyone who posted on it, even if it wasn't meant for me, specifically.