Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2006
    Posts
    921
    Plugin Contributions
    2

    Default Hide Breadcrumbs...

    Ok, I've managed to 'hide' the breadcrumbs on certain pages by using the following code in my stylesheet...

    Code:
    #advancedsearchBody #navBreadCrumb { display:none; }
    (Obviously the code above changes depending on the page in questions)

    At the moment I'm trying to 'hide' the breadcrubs on my main page. I have acomplished this by using the following code.

    Code:
    #indexBody #navBreadCrumb { display:none; }
    (I 'think' that's the right code)

    While this does the job it also 'hides' the breadcrumbs on my category pages! Since my shop contains a few in-depth categories this causes me some problems.

    So my question... Is there a way to hide the breadcrumbs on the main page, but still allow them to show on category pages?

  2. #2
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default Re: Hide Breadcrumbs...

    [FONT=Tahoma]To turn it off on the main page only in includes -> templates -> YOUR_TEMPLATE -> templates -> common -> tpl_main_page.php find the following lines of code

    PHP Code:

    [/FONT]
    <!-- bof breadcrumb -->
    <?php if (DEFINE_BREADCRUMB_STATUS == '1') { ?>
    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
    <?php } ?>
    <!-- eof breadcrumb -->
    [FONT=Tahoma]

    and change to:

    PHP Code:

    [/FONT]
    <!-- bof breadcrumb -->
    <?php if (DEFINE_BREADCRUMB_STATUS == '1' && ($current_page!='index' || (int)$cPath>0 )) { ?> <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
    <?php } ?>
    <!-- eof breadcrumb -->
    Hope this help..

  3. #3
    Join Date
    Jan 2004
    Posts
    58,242
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Hide Breadcrumbs...

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  4. #4
    Join Date
    Mar 2006
    Posts
    921
    Plugin Contributions
    2

    Default Re: Hide Breadcrumbs...

    Once again the community help me! :)

    I tried miles' code change and it worked fine.

    Thanks.

  5. #5
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    813
    Plugin Contributions
    0

    Default Re: Hide Breadcrumbs...

    This didn't seem to work for me.....?

    I also need to hide the navMainWrapper which has the search bar in it and navSuppWrapper which has EZpage links...

    I'm not sure what the best way to hide all of these would be....
    Last edited by khopek; 3 Nov 2007 at 01:54 AM.

  6. #6
    Join Date
    Nov 2009
    Posts
    20
    Plugin Contributions
    0

    Default Re: Hide Breadcrumbs...

    Its working for me.......thanks for your help.....
    THIRUPPATHY
    India

    Quote Originally Posted by miles View Post
    [FONT=Tahoma]To turn it off on the main page only in includes -> templates -> YOUR_TEMPLATE -> templates -> common -> tpl_main_page.php find the following lines of code

    PHP Code:

    [/FONT][FONT=Tahoma]

    and change to:

    PHP Code:

    [/FONT]Hope this help..
    LOVE TO LEARN NEW TECHNOLOGY

  7. #7
    Join Date
    Aug 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: Hide Breadcrumbs...

    How do I hide it from just the shopping cart?

 

 

Similar Threads

  1. Removing breadcrumbs from certain pages...
    By Alex Clarke in forum General Questions
    Replies: 11
    Last Post: 5 Oct 2010, 11:06 AM
  2. Removing the "Home" link from breadcrumbs
    By cupcake in forum Basic Configuration
    Replies: 12
    Last Post: 6 May 2010, 06:28 PM
  3. hide product from the search Result
    By hossam in forum General Questions
    Replies: 0
    Last Post: 14 May 2006, 07:15 PM

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
  •