Zen Cart Logo

Hide Breadcrumbs...

Views: 4,426

Results 1 to 7 of 7
3 Nov 2006, 10:20 PM
#1
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Hide Breadcrumbs...

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

#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.

#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?

3 Nov 2006, 10:28 PM
#2
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: Hide Breadcrumbs...

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:

> <!-- bof breadcrumb -->

<?php if (DEFINE_BREADCRUMB_STATUS == '1') { ?>
<div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>

<!-- eof breadcrumb -->

and change to:

PHP Code:

> <!-- 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..:wink2:

4 Nov 2006, 10:40 AM
#4
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Hide Breadcrumbs...

Once again the community help me! :)

I tried miles' code change and it worked fine.

Thanks.

3 Nov 2007, 12:50 AM
#5
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

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....

3 Mar 2010, 6:50 AM
#6
thirupathy avatar

thirupathy

New Zenner

Join Date:
Nov 2009
Posts:
20
Plugin Contributions:
0

Re: Hide Breadcrumbs...

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

miles:

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:

and change to:

PHP Code:

Hope this help..:wink2:

21 Apr 2011, 4:50 PM
#7
benwine avatar

benwine

New Zenner

Join Date:
Aug 2008
Posts:
1
Plugin Contributions:
0

Re: Hide Breadcrumbs...

How do I hide it from just the shopping cart?