Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By caveman on
My breadcrumbs are causing me problems as they give links to pages I don't want users accessing. It would be nice to find some way to redo them based on taxonomy and all, but I would be happy to simply disable them. Is there some easy way to do that? Maybe delete a line somewhere in the theme? (I'm using chameleon in 4.5). I've read a few posts but seems everyone is trying to fix them. I built my own navigation system and don't really need the breadcrumbs.
Thanks!
Caveman
Comments
CSS
You can always use css to disable your breadcrumbs.
In the css for your theme (usually style.css) add
It might be better to remove the td or block
ummm ... i get all the different files mixed up lessee ... its the chameleon theme? Then there should be a line in the .theme file
line 74-76 or so of chameleon.theme you can comment these lines
// if title = drupal_get_title())
// output .= theme("breadcrumb", drupal_get_breadcrumb );
// output .= "h2 title h2";
then Drupal won't even output a blank line there as it would if you change the css file. If you want the title displayed still don't comment the output = "h2 title" line
"display: none" attached to
"display: none" attached to your corresponding html-element or class will not produce an empty line but will display the page as if the breadcrumbs are disabled. They still are produced however (which produces a slight overhead for the server?)
The css property "visibility:hidden" will hide the breadcrumbs but will still keep an empty line for them. This is like putting them on the page but not displaying them.
Short answer: Remove <?php
Short answer:
Remove
echo $breadcrumb;
from page.tpl.php of your theme.Long answer:
http://drupal.org/node/64348
Thanks bio44
Great answer. Worked perfectly for me.
ugh
I am using the Alagna theme for Marinelli, and I have edited the page.tpl file, template.php, and layout.css and I can't get the breadcrumbs off. I'm very frustrated because every forum that has a solution won't work for me. Any help would be great
thanks!
look for $breadcrumb in
look for $breadcrumb in page.tpl.php
I have an I deleted the
I have an I deleted the breadcrumb line, and nothing.
Good Answer
Thanks it worked perfectly for me too thanks very much
deleted breadcrumb from Bartik theme
I commented out the following from the drupal-7.4/theme/bartik/templates/page.tpl.php file and it removed the breadcrumb. Thanks!
if ($breadcrumb):
print $breadcrumb;
endif;
There is a module that easily and flexibly does this ...
... without the need to fiddle with the code of each theme.
From the project page:
Try : Disable Breadcrumbs