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?

Comments

pulsifer’s picture

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’s picture

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

Kato’s picture

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

heine’s picture

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.

Kato’s picture

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

heine’s picture

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.

Kato’s picture

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

cazam’s picture

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

Carrie
http://www.cazam.eu

brianabbott’s picture

what probably seems easy for most helped me tons! thanks!
css solution was perfect for me.

jaymex’s picture

Thank you soo much! - still works in March 2011 for the SKY theme and Drupal 7

nixuzer’s picture

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.

nickweb’s picture

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

thinkpadius’s picture

Being completely self taught and relying solely on trial and error can be a big pain. Thanks for making this one an easy fix.

I solved this problem to hide breadcrumbs in the Nitobe theme. And honestly both methods (// and /*) worked out for me, but I chose the second one because screwing up html validation sounded scary. I'm Using drupal 6.

EJuhl’s picture

Check for this file in the directory for the theme you're using, within the "templates" directory

Perhaps: sites > all > themes > theme_name > templates > page.tpl.php

...

Edit: Sorry, this has been pointed out. Need to read better.

dbreit’s picture

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>
dbreit’s picture

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.

Crackwood’s picture

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):

print $breadcrumb;

To:

/*print $breadcrumb;*/

Anyhow, thanks again all!

alex.pilon’s picture

eww dude.

wyszomir05’s picture

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?

thedawn’s picture

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

giovani’s picture

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

BradleyT’s picture

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.

dbeall’s picture

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

florizobidie’s picture

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 !

petercrowell’s picture

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

px’s picture

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.

Catalyst5’s picture

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

Any chance of updating it?

Thanks

GreenSpiderDesign’s picture

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

cazam’s picture

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

dbeall’s picture

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.

Jorgen Sundberg’s picture

nonprofit’s picture

Even though this is a really old thread, but some others have expressed gratitude, so I just wanted to weigh in:

Using display:none to hide content Drupal outputs is a bad idea.

Not just breadcrumbs, but you never want to ask Drupal to render something only to hide it (it's a waste of resources). Commenting out the code in the page template would be a better solution.
-NP

alex.pilon’s picture

And to add, any markup that you do not want in your page should be prevented from being output by drupal (or any platform) because it adds to the size of pages. This may seem like a negligible performance boost, but remember there are numerous techniques used to compress output, reduce http requests, etc. Keeping unnecessary page markup is definitely a favorable option over using javascript or css to hide things.

spyderpie’s picture

I wish this option were in the theme 'toggle display' section as a standard.

Tafa’s picture

I'd suggest that too...

edill3484’s picture

.breadcrubs {
display:none;
}

nonprofit’s picture

Actually, display:none is not the best solution. See above.

pgancarski’s picture

I don't like messing up templates because it makes the core upgrades difficult, so my solution is with hooks.

You only have to add the following

function mycode_menu_breadcrumb_alter(&$active_trail, $item){
    $active_trail = array();
}

A thing to consider in terms of efficiency, is that disabling breadcrumbs in the template will make the website lighter.

revnoah’s picture

Nice and simple. Thanks!

Totskie’s picture

I try this but not working in my end. My site have only 7 pages, that's why i don't need a breadcrumbs in mys site.

dunklea’s picture

Remember to flush your caches after implementing this.

davidjmcq’s picture

.... only have to add the following ....

add it where??????

maybe it's obvious to you, but not to me :(

clemence.izm’s picture

it works like a charme!

Much better that display none that is really bad for seo...

For those who are really lost with where to put this code: in the template.php file of your child theme.
replace mycode by the name of your template.

Cheers!

vm’s picture

I'd check the theme settings to ensure the theme in use doesn't already provide a checkbox to turn the breadcrumbs off.

Totskie’s picture

Hi spent lot of time in looking for answers on how i can modify the layout of my breadcrumbs. Anyone knows? I'm new in drupal it's so hard in my end to do things that I want cause I'm not familiar with the CMS.

BTW, sorry if I inserted this question in this thread.

Thanks,
Totskie

ideogram_nl’s picture

Could you be more specific? What is it that you would like to change?

pizza’s picture

There are a number of breadcrumbs-related modules out there, you may want to try them out. Have a look at this comparison article.

pizza’s picture

Before you go off and start touching any code (like I was about to do, given the comments above), please note that there exists at least one module that helps you hide breadcrubms.

I installed disable_breadcrumbs
https://www.drupal.org/project/disable_breadcrumbs
ticked one checkbox, problem solved. This really ought to be folded into core in my view.

avinash_thombre’s picture

The breadcrumbs can be disabled in 2 ways:

1. You can disable it using the css. Hide it using "breadcrumb {display: none}"
2. Go to the themes directory and find file a filename page.tpl.php; in file, then search for "breadcrumb". There would be a could like " print $breadcrumb;" which would be printing the breadcrumbs between top banner area and page title. Comment this code or erase it and refresh the site. Breadcrumb will not be displayed.