How do you remove BreadCrumbs?

Kato - March 3, 2006 - 17:56

I think that is what it is called...breadcrumbs. Those links you get over the top of your main page.

HOME > Administrator etc....

How do you get rid of those? I really don't want them to display on my site. Any help?

In the page.tpl.php file of

pulsifer - March 3, 2006 - 18:21

In the page.tpl.php file of whatever template you are using, remove the line that says:

<?php if ($breadcrumb) print $breadcrumb; ?>

or something to that effect.

?

Kato - March 3, 2006 - 18:23

page.tpl.php I don't have a file by that name anywhere in my drupal installation that I can readily find. Specially in the theme I am using. Chamelon/Marvin

http://nglofsalina.com

So....

Kato - March 3, 2006 - 19:11

Is everyone reading this and just thinking that I don't know what I am doing or what? I have seen that file referenced before (many times in other things and posts and forums), but when I go through every single folder of my drupal installation, there is no page.tpl.php file. None. And this is on my test installation that I do all testing with and my actual working installation...

So please, I know there are people out there that work with Drupal and know this answer...please help.

http://nglofsalina.com

Hide by css or remove from chameleon

Heine - March 3, 2006 - 19:19

You can either hide it using CSS (eg. .breadcrumb {display: none;}) or remove line 69 from chameleon.theme:

$output .= theme("breadcrumb", drupal_get_breadcrumb());

Good luck,

Heine

PS I don't really get your 21:11 post.

--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

aaahhhhh

Kato - March 3, 2006 - 19:23

Thank you! Much appreciated. That did the trick just like I wanted it too.

As for the line 21:11...Heh...I'm not sure I really get what you mean either. Is this because of time zone differences?

http://nglofsalina.com

Timezone

Heine - March 3, 2006 - 19:31

Sorry that's the timezone difference indeed... Glad it worked.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

Well...

Kato - March 3, 2006 - 19:37

Thanks for the help Heine. You are one of the ones out here I have received the most help and support from and seem to help out in general. Thumbs up to you and I appreciate your help.

http://nglofsalina.com

great post

cazam - August 22, 2008 - 09:41

Hi Heine, I know this is an old post but boy is it a good one - love your work.

Carrie
http://www.cazam.eu

page.tpl.php

nixuzer - January 9, 2007 - 18:51

The file is a part of each theme.

So look in /{drupal root}/themes/{current theme}/page.tpl.php

Example:
/themes/friendselectric/page.tpl.php

You can comment out the code by adding // after the <?php tag just before the $print breadcrumb statement.

Old:

<?php print $breadcrumb ?>

New:

<?php // print $breadcrumb ?>

Personally I just use the CPanel file editor (in browser) since it is a simple change.

Update

nickweb - January 17, 2007 - 18:38

Not wanting to steal nay thunder, but to ensure you stil retain all your html validation stuff, empty tags cant be used..

Under v5 of Drupal, load up page.tpl.php, and find the line
<?php if ($breadcrumb) { ?><div class="breadcrumb"><?php print $breadcrumb ?></div><?php } ?>
(or similar).. Add a
/* just after the <?php, and a */?> just before the end of the ?>. So the full line reads :

<?php /* if ($breadcrumb) { ?><div class="breadcrumb"><?php print $breadcrumb ?></div><?php } */?>

Hope this helps!

Thanks,
Nick

www.nick-web.co.uk

Or with javascript, here is how I did it...

dbreit - March 25, 2006 - 22:35

Or with javascript, here is how I did it. I use drupal 4.6 right now and cannot use sections.module

<script type="text/javascript">
if (location.href.match(new RegExp(/mysite.com\/gallery/i))) {
document.write('<STYLE TYPE="text/css">');
document.write('.breadcrumb {display: none;}');
document.write('</STYLE>');
}
</script>

Even better...

dbreit - April 12, 2006 - 16:55

Just put this in your gallery theme.css in /gallery2/themes/[theme name]/theme.css:

.breadcrumb {display: none;}

This way, the drupal brumbs will be hidden throughout the gallery.

That change worked for me,

Crackwood - January 20, 2008 - 02:37

That change worked for me, thank you.

I noticed for the barlow theme it was in the typography.css file, and for the brushed_steel theme it was in the style.css file.

Here are the changes I made to make it work, if anyone is interested:

Changed (barlow):

#breadcrumb {
margin: 0 0 1em 0;
}

To:

#breadcrumb {
//margin: 0 0 1em 0;
display: none;
}

And changed (brushed_steel):

#header #header-region .breadcrumb {
font-size: 10px;
color: #999999;
}

To:

#header #header-region .breadcrumb {
//font-size: 10px;
//color: #999999;
display: none;
}

Note: I found the method of changing the page.tpl.php file (located in the theme directory you are working with) to work also, but I felt more comfortable changing the .css file.

Changed (page.tpl.php):

<?php
print $breadcrumb;
?>

To:

<?php
/*print $breadcrumb;*/
?>

Anyhow, thanks again all!

Breadcrumbs in Pixture

wyszomir05 - July 15, 2008 - 20:55

I have the page.tpl.php file, however when I open it, it doesn't display anything. I've searched far and wide in all of the directories of Pixture, and the word breadcrumb only appears once, and it doesn't deal with printing it. Can anyone one help me?

Remove breadcrumbs in Pixture theme

thedawn - July 16, 2008 - 05:13

Line 62 of page.tpl.php is

<?php print $breadcrumb ?>

Remove it or comment it out.

- OR -

Line 312 of style.css

.breadcrumb {
padding: 0px;
padding-bottom: 2px;
}

change this to

.breadcrumb {
/* padding: 0px;
padding-bottom: 2px; */
display:none;
}

Dawn

future drupal versions

giovani - February 22, 2008 - 09:28

future drupal versions should allow users to toggle breadcrumbs activation from the admin ui....

Breadcrumbs are awesome

BradleyT - February 22, 2008 - 22:36

They help very much in usability and help a small amount for SEO.

I use them all the time when I'm in the admin section of my site.

breadcrumbs

dbeall - May 13, 2009 - 04:33

I have found the breadcrumbs to be wrong most of the time in drupal. What i mean by wrong is they link to the wrong items consistently, It is one of the worst parts of Drupal that I am still trying to correct. I have spent months trying to correct this inherent Drupal error...still working on it,,,for months now

editing.. the custom_breadcrumbs module is very neat once you figure it out..
I have solved all the troubles with this module.. wish i would have found it long time ago...lol...

yes they are

florizobidie - March 2, 2009 - 01:06

I must say that they realy rock. They do not take up a lot of space, and they very quickly tell you where you are in a site. I also have a feeling looking at the log's of my website they offer the visitor extra motivation to read more on the website.

----------------
Lang leven voor je hypotheek !

Leven we niet altijd voor onze hypotheek

Thanks for this thread!

petercrowell - March 27, 2009 - 22:52

Very glad to find this thread, thanks all for your posts.

FYI

px - May 10, 2009 - 22:35

I just created a module to disable breadcrumbs, as I am not really happy with messing around with the themes for several reasons. It only removes breadcrumbs from content pages and lists, but not from administration and forums.

I keep it in my blog, because I frankly consider it to be to trivial to make it through approval process for new projects.

That is an awesome little

Catalyst5 - July 13, 2009 - 18:20

Unfortunately this module only seems to work for the home page.

Any chance of updating it?

Thanks

D6 has the ability within Theme Settings

GreenSpiderDesign - July 13, 2009 - 18:57

to disable breadcrumbs entirely or only make visible in admin sections. Are you working with an older version of Drupal?

breadcrumbs in mytree leave the bock there

cazam - July 14, 2009 - 18:39

Hello,
I followed all these great instructions, css, php comment out, all wonderful, but in MyTree theme there remains an empty white block at the top of every page where the breadcrumb used to be.
Any ideas for this random annoyance?
Thanks!!!!!!

Carrie
CAZAM Ltd
http://www.cazam.eu

breadcrumbs

dbeall - August 10, 2009 - 20:34

Did you get this solved? If not, could you post the URL of your site so I can have a look. There may be something in the css that is holding the space open, even though the breadcrumbs are not being printed. You are welcome to use my contact page, maybe I can spot something to help.

 
 

Drupal is a registered trademark of Dries Buytaert.