If this is your first visit, check our documentation. To post, register or login.

Hide Breadcrumbs...

Started by alex_clarke on 3 Nov 2006, 10:20 PM · Views: 4,427

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?

My Contributions: Zen Lightbox | Best Sellers Reloaded

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:

- Nothing is impossible. Some things are just less likely than others. -

3 Nov 2006, 10:58 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

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

My Contributions: Zen Lightbox | Best Sellers Reloaded

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:

LOVE TO LEARN NEW TECHNOLOGY

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?