By Kato on
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?
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
In the page.tpl.php file of
In the page.tpl.php file of whatever template you are using, remove the line that says:
or something to that effect.
?
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....
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
You can either hide it using CSS (eg.
.breadcrumb {display: none;}) or remove line 69 from chameleon.theme: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
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
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...
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
Hi Heine, I know this is an old post but boy is it a good one - love your work.
Carrie
http://www.cazam.eu
thanks!
what probably seems easy for most helped me tons! thanks!
css solution was perfect for me.
Removing Breadcrumbs
Thank you soo much! - still works in March 2011 for the SKY theme and Drupal 7
page.tpl.php
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:
New:
Personally I just use the CPanel file editor (in browser) since it is a simple change.
Update
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
It worked thanks!
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.
page.tpl.php
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.
Or with javascript, here is how I did it...
Or with javascript, here is how I did it. I use drupal 4.6 right now and cannot use sections.module
Even better...
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,
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!
eww dude.
eww dude.
Breadcrumbs in Pixture
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
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
future drupal versions should allow users to toggle breadcrumbs activation from the admin ui....
Breadcrumbs are awesome
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
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
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 !
Thanks for this thread!
Very glad to find this thread, thanks all for your posts.
FYI
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
Unfortunately this module only seems to work for the home page.
Any chance of updating it?
Thanks
D6 has the ability within Theme Settings
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
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!!!!!!
breadcrumbs
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.
remove breadcrumbs
this littel module worked for me!
http://www.onyxbits.de/content/blog/patrick/disabling-breadcrumb-navigat...
No! Wait! Please don't do *that*
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
And to add, any markup that
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.
Wishing it were ...
I wish this option were in the theme 'toggle display' section as a standard.
I'd suggest that too...
I'd suggest that too...
CSS removal of breadcrumbs
.breadcrubs {
display:none;
}
Actually, display:none is not
Actually, display:none is not the best solution. See above.
By hooks
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
A thing to consider in terms of efficiency, is that disabling breadcrumbs in the template will make the website lighter.
Nice and simple. Thanks!
Nice and simple. Thanks!
not working
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.
Remember to flush your caches
Remember to flush your caches after implementing this.
By hooks....
.... only have to add the following ....
add it where??????
maybe it's obvious to you, but not to me :(
it works like a charme!
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!
=-=
I'd check the theme settings to ensure the theme in use doesn't already provide a checkbox to turn the breadcrumbs off.
Breadcrumbs layout
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
Could you be more specific?
Could you be more specific? What is it that you would like to change?
Try existing modules on for size
There are a number of breadcrumbs-related modules out there, you may want to try them out. Have a look at this comparison article.
Just install a module!
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_breadcrumbshttps://www.drupal.org/project/disable_breadcrumbs
ticked one checkbox, problem solved. This really ought to be folded into core in my view.
Using CSS and page.tpl.php file
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.