Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2006
    Location
    Jacksonville, FL
    Posts
    236
    Plugin Contributions
    0

    help question Changing the Home Breadcrumb

    I've looked at a couple of posts on this, but I can't seem to find where to change the Home link in breadcrumbs to my own index page. One post said to look for
    $breadcrumbs (something something) in my includes/application_top.php, but I could not find it anywhere. Does anyone have a solution for this?
    John L.
    MultiMedia Designer

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Changing the Home Breadcrumb

    /includes/init_includes/overrides/ini_add_crumbs.php
    line 15:
    Code:
    $breadcrumb->add(HEADER_TITLE_CATALOG, zen_href_link(FILENAME_DEFAULT));
    Change the zen_href_link(FILENAME_DEFAULT) to your custom URL.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2006
    Location
    Jacksonville, FL
    Posts
    236
    Plugin Contributions
    0

    Default Re: Changing the Home Breadcrumb

    That doesn't seem to be working, DrByte. Any other ideas?
    John L.
    MultiMedia Designer

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Changing the Home Breadcrumb

    what exactly did you put there?
    where exactly did you upload it to?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2006
    Location
    Jacksonville, FL
    Posts
    236
    Plugin Contributions
    0

    Default Re: Changing the Home Breadcrumb

    I didnt have an ini_add_crumbs.php in my /includes/init_includes/overrides/ folder, but i did have one in my /includes/init_includes/ so I modified that and uploaded it back to init_includes. I changed this:

    Code:
    $breadcrumb->add(HEADER_TITLE_CATALOG, zen_href_link(FILENAME_DEFAULT));
    to this:

    Code:
    $breadcrumb->add(HEADER_TITLE_CATALOG, 'http://www.myhomepage.com');
    Should I be saving this to the overrides folder?
    John L.
    MultiMedia Designer

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Changing the Home Breadcrumb

    1. using the overrides folder, of course, is the better practice.

    2. I just did the same as you posted, and it works fine on my test site.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Sep 2006
    Location
    Jacksonville, FL
    Posts
    236
    Plugin Contributions
    0

    Default Re: Changing the Home Breadcrumb

    It's still not working for me DrByte... are you sure there aren't any other files that would need to be modified?
    John L.
    MultiMedia Designer

  8. #8
    Join Date
    Dec 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: Changing the Home Breadcrumb

    Quote Originally Posted by Lawbird123 View Post
    It's still not working for me DrByte... are you sure there aren't any other files that would need to be modified?
    Anyone else have any ideas on this, because it doesn't work for me either??

    1) the file isn't in the place that Dr. Byte said it was, it's in the place where Lawbird says it was.

    2) I made the changes suggested by Dr. Byte but nothing happened.

    Anyone???

  9. #9
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Changing the Home Breadcrumb

    I'm looking to do exactly the same, but haven't got anywhere yet!

    Anyone have an update on this?

  10. #10
    Join Date
    Mar 2008
    Location
    Joliet, IL
    Posts
    4
    Plugin Contributions
    0

    Default Re: Changing the Home Breadcrumb

    I know this is an old thread but hopefully this helps as I use a CMS program and Zencart is located in a sub directory which creates headaches with using breadcrumbs.

    The reason why DrBye’s solution above does not work for me ... is located in includes > classes > breadcrumb.php

    Find this If statement

    Code:
    // 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>';
            }
    You’ll notice that this statement will override the changes we make in int_add_crumbs.php as long as the title is equal to HEADER_TITLE_CATALOG or “Home”. To overcome this I made this change to breadcrumb.php

    Code:
    // 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>';
              $trail_string .= '  <a href="' . $this->_trail[$i]['link'] . '">' . $this->_trail[$i]['title'] . '</a>';
            } else {
              $trail_string .= '  <a href="' . $this->_trail[$i]['link'] . '">' . $this->_trail[$i]['title'] . '</a>';
            }
    And as per DrByte's post I made these changes to the int_add_crumbs.php

    Code:
    $breadcrumb->add(HEADER_TITLE_CATALOG, '/home');
    $breadcrumb->add('Store', '/store');
    The reason I’m pointing the home page to “/home” is I’m using a Splash page and the CMS program knows “/home” is not to display the Splash page as “/” will.

 

 

Similar Threads

  1. v139h change the link associated to the "Home" breadcrumb
    By raphael in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 Sep 2014, 03:40 PM
  2. How to Change the Word "Home" of Breadcrumb Navigation
    By paul886 in forum General Questions
    Replies: 1
    Last Post: 10 Mar 2010, 07:16 PM
  3. Aligning links on the Home Breadcrumb line
    By tdiamond in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Jan 2010, 08:10 AM
  4. Changing home link in breadcrumb
    By chrisp8756 in forum General Questions
    Replies: 10
    Last Post: 5 Apr 2007, 03:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR