Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2006
    Posts
    919
    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
    66,444
    Plugin Contributions
    279

    Default Re: Hide Breadcrumbs...

    .

    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.

  4. #4
    Join Date
    Mar 2006
    Posts
    919
    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
    799
    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. v139h Hide breadcrumbs from Product Listing Page
    By barendfaber in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 11 Aug 2012, 07:52 PM
  2. hide breadcrumbs for specific category
    By fakeDecoy in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 13 May 2012, 08:08 AM
  3. Breadcrumbs
    By geeker in forum Customization from the Admin
    Replies: 9
    Last Post: 10 Mar 2011, 03:40 PM
  4. hide breadcrumbs
    By jmelwak in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 1 Aug 2008, 08:27 PM
  5. Breadcrumbs
    By 04gotgoat? in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 2 Jan 2008, 04:38 AM

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