Forums / Templates, Stylesheets, Page Layout / change the link associated to the "Home" breadcrumb

change the link associated to the "Home" breadcrumb

Started by raphael on 14 Sep 2014, 5:09 PM · Views: 1,273

Results 1 to 6 of 6
14 Sep 2014, 5:09 PM
#1
raphael avatar

raphael

New Zenner

Join Date:
Jan 2011
Posts:
47
Plugin Contributions:
0

change the link associated to the "Home" breadcrumb

Can anyone tell me how I can change the link to where the "Home" breadcrumb is pointing to. See screenshot. I'm on 1.39h.Attachment 14515

15 Sep 2014, 6:21 AM
#2
mdc avatar

mdc

New Zenner

Join Date:
Jul 2007
Posts:
25
Plugin Contributions:
0

Re: change the link associated to the "Home" breadcrumb

You can change the link in includes/classes/breadcrumb.php

$trail_string .= '  <a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . $this->_trail[$i]['title'] . '</a>';

You can change . HTTP_SERVER . DIR_WS_CATALOG to whatever you want.

New Template for Zen Cart 1.5.3
**Elektro Responsive Zencart Template**

15 Sep 2014, 1:31 PM
#3
raphael avatar

raphael

New Zenner

Join Date:
Jan 2011
Posts:
47
Plugin Contributions:
0

Re: change the link associated to the "Home" breadcrumb

mdc:

You can change the link in includes/classes/breadcrumb.php

$trail_string .= ' <a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . $this->_trail[$i]['title'] . '</a>';

> You can change . HTTP_SERVER . DIR_WS_CATALOG to whatever you want.

Thanks mdc, I changed it to the below & it broke my cart. What did I do wrong?

$trail_string .= '  <a href="' . <http://www.mysiteaddress.com/subdirectory/filename.htm> . '">' . $this->_trail[$i]['title'] . '</a>';
15 Sep 2014, 1:49 PM
#4
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: change the link associated to the "Home" breadcrumb

raphael:

Thanks mdc, I changed it to the below & it broke my cart. What did I do wrong?

$trail_string .= ' <a href="' . <http://www.mysiteaddress.com/subdirectory/filename.htm> . '">' . $this->_trail[$i]['title'] . '</a>';
try this:

$trail_string .= '  <a href="http://www.mysiteaddress.com/subdirectory/filename.htm">' . $this->_trail[$i]['title'] . '</a>';
15 Sep 2014, 2:09 PM
#5
raphael avatar

raphael

New Zenner

Join Date:
Jan 2011
Posts:
47
Plugin Contributions:
0

Re: change the link associated to the "Home" breadcrumb

Thanks Design that did the trick... not sure what I was missing though..

15 Sep 2014, 2:40 PM
#6
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: change the link associated to the "Home" breadcrumb

raphael:

Thanks Design that did the trick... not sure what I was missing though..
You had:

$trail_string .= '  <a href="' . http://www.mysiteaddress.com/subdirectory/filename.htm . '">' . $this->_trail[$i]['title'] . '</a>';

After the href an double quote you were changing from html to php mode in building the string. This was causing the error.