
Originally Posted by
hivtop
can someone Please point me to the place where I can change the "Home" link that is BELOW the nav bar. (on the products and category pages)
I think it has something to do with navBreadCrumb but can't seem to find where the" HTTP_SERVER . DIR_WS_CATALOG ." code is.
Had no problem changing the Logo and Nav home links but I'm lost on the one below...
Thanks
William
site:
http://www.customshopping.com/
That's going to require a core-file change to /includes/classes/breadcrumb.php. Open that file to find:
Code:
function trail($separator = ' ') {
$trail_string = '';
for ($i=0, $n=sizeof($this->_trail); $i<$n; $i++) {
// echo 'breadcrumb ' . $i . ' of ' . $n . ': ' . $this->_trail[$i]['title'] . '<br />';
$skip_link = false;
if ($i==($n-1) && DISABLE_BREADCRUMB_LINKS_ON_LAST_ITEM =='true') {
$skip_link = true;
}
if (isset($this->_trail[$i]['link']) && zen_not_null($this->_trail[$i]['link']) && !$skip_link ) {
// this line simply sets the "Home" link to be the domain/url, not main_page=index?blahblah:
if ($this->_trail[$i]['title'] == HEADER_TITLE_CATALOG) {
$trail_string .= ' <a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . $this->_trail[$i]['title'] . '</a>';
} else {
$trail_string .= ' <a href="' . $this->_trail[$i]['link'] . '">' . $this->_trail[$i]['title'] . '</a>';
}
} else {
$trail_string .= $this->_trail[$i]['title'];
}
if (($i+1) < $n) $trail_string .= $separator;
$trail_string .= "\n";
}
return $trail_string;
}
and make the change highlighted below:
Code:
function trail($separator = ' ') {
$trail_string = '';
for ($i=0, $n=sizeof($this->_trail); $i<$n; $i++) {
// echo 'breadcrumb ' . $i . ' of ' . $n . ': ' . $this->_trail[$i]['title'] . '<br />';
$skip_link = false;
if ($i==($n-1) && DISABLE_BREADCRUMB_LINKS_ON_LAST_ITEM =='true') {
$skip_link = true;
}
if (isset($this->_trail[$i]['link']) && zen_not_null($this->_trail[$i]['link']) && !$skip_link ) {
// this line simply sets the "Home" link to be the domain/url, not main_page=index?blahblah:
if ($this->_trail[$i]['title'] == HEADER_TITLE_CATALOG) {
//-bof-20180204-lat9-Add index.php to the Home-page link
// $trail_string .= ' <a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . $this->_trail[$i]['title'] . '</a>';
$trail_string .= ' <a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'index.php">' . $this->_trail[$i]['title'] . '</a>';
//-eof-20180204-lat9
} else {
$trail_string .= ' <a href="' . $this->_trail[$i]['link'] . '">' . $this->_trail[$i]['title'] . '</a>';
}
} else {
$trail_string .= $this->_trail[$i]['title'];
}
if (($i+1) < $n) $trail_string .= $separator;
$trail_string .= "\n";
}
return $trail_string;
}
Bookmarks