Removal of breadcrumbs


  Page 1 of 2 Next Last 
Author Message
Patrick Visser

Posted: 3/30/2009
Quote message 

Hi Clare.

What you can do is like this:

Open you theme/template.php white a good editor like NotePad ++.

Search ad the line 32:

function art_breadcrumb_woker($breadcrumb) {
$breadcrumb = menu_get_active_breadcrumb();
if (!empty($breadcrumb)) {
return '<div class="breadcrumb">' . implode(' | ', $breadcrumb) . '</div>';


Now delete the line like bold
function art_breadcrumb_woker($breadcrumb) {
$breadcrumb = menu_get_active_breadcrumb();
if (!empty($breadcrumb)) {
return '<B><div class="breadcrumb">' . implode(' | ', $breadcrumb) .</b> '</div>';b
 
Patrick Visser

Posted: 3/30/2009
Quote message 

Sorry Clare,

Pressed the Enter to vast. Ignor the last post i made. Here is the good one..

Search ad the line 32:

function art_breadcrumb_woker($breadcrumb) {
$breadcrumb = menu_get_active_breadcrumb();
if (!empty($breadcrumb)) {
return '<div class="breadcrumb">' . implode(' | ', $breadcrumb) . '</div>';


Now delete the line like bold
function art_breadcrumb_woker($breadcrumb) {
$breadcrumb = menu_get_active_breadcrumb();
if (!empty($breadcrumb)) {
return ' ';
 
Clare

Posted: 3/30/2009
Quote message 

Thanks very much.

I'd got close at working it out but I'm only just starting out with PHP so it's all bit scary sometimes!

Clare
 
Steve

Posted: 4/5/2009
Quote message 

The easiest way to get rid of breadcrumbs is to insert the following code in your style.css. 1) search for .breadcrumbs
2) replace what is there with:

.breadcrumb
{
display:none;
}

Hope that helps.
Steve Lack
www.satspeedprep.com
twitter: SATSpeedPrep
 
Patrick Visser

Posted: 4/8/2009
Quote message 

Yes Steve thats true but it does not hide the <div> sections and the story is not at the top then. To prevent this i use the template.php part. :-)
 
Erik Brouwer

Posted: 5/6/2009
Quote message 

Thanks Patrick. Worked like a charm. :-D
 
Halvor Mjøen

Posted: 5/12/2009
Quote message 

Hi,

I can not seem to find the section that Patrick is talking about in the theme/template.php

"Search ad the line 32:

function art_breadcrumb_woker($breadcrumb) {
$breadcrumb = menu_get_active_breadcrumb();
if (!empty($breadcrumb)) {
return '<div class="breadcrumb">' . implode(' | ', $breadcrumb) . '</div>'; "

I have a artisteer 2.1 generated theme that im trying to remove the breadcrumbs from since they seem to move all of my ""Artickles" / "Story" down.

Any tips, where I might find that section ?


 
Clare

Posted: 5/13/2009
Quote message 

Try in a file called common_methods
 
Halvor Mjøen

Posted: 5/13/2009
Quote message 

Thx Clare, worked like a charm :-D
 
Patrick Visser

Posted: 5/13/2009
Quote message 

Sorry Halvor Mjøen.

I whase out yesterday, Could not answer you question. I'm glad that there are more friends that help if needed.

Greetings.
Patrick..
 
Fatal Flaw

Posted: 5/17/2009
Quote message 

All, IMHO this isn't the easy or clean way to do this. Artisteer is a great product, and getting better, but most of us probably want to add tweaks to the end result. The Drupal-friendly way to do this is not to modify the original theme, but to create a sub-theme based on your artisteer theme and OVERRIDE it to tweak the end result. You only have to do the tweaks once. It's easy. Here's what you do:

1. you create your Artisteer theme, fred.
2. To create your 'wilma' sub theme, create a directory in sites/all/themes called wilma.
3. in the wilma directory, create a file called wilma.info. Here's an example:


name = Wilma
description = Sub-theme based on Artisteer theme 'fred'
core = 6.x
base theme = fred
version = 1.0
engine = phptemplate
stylesheets[all][] = tweaks.css

regions[left] = Left sidebar
regions[right] = Right sidebar
regions[content] = Content
regions[navigation] = Menu
regions[banner1] = Banner 1
regions[banner2] = Banner 2
regions[banner3] = Banner 3
regions[banner4] = Banner 4
regions[banner5] = Banner 5
regions[banner6] = Banner 6
regions[user1] = User 1
regions[user2] = User 2
regions[user3] = User 3
regions[user4] = User 4
regions[copyright] = Copyright
regions[top1] = Top 1
regions[top2] = Top 2
regions[top3] = Top 3
regions[bottom1] = Bottom 1
regions[bottom2] = Bottom 2
regions[bottom3] = Bottom 3


4. create a tweaks.css file in the wilma directory. Here's one that makes the lettering of all buttons uppercase:


/* CSS tweak file for Lo Cigal */

/* Capitalise text in buttons */
.Button
{
text-transform: uppercase;
}


5. create a template.tpl file in wilma to override any themable php functions. Here's mine which removed the breadcrumb:


<?php

/**
* Remove breadcrumb completely
*/
function wilma_breadcrumb($breadcrumb) {
/* do nothing! */
}
?>


6. Select the theme. You're done! try ctrl-f5 to force the browser to reload all cached files if it doesn't do what you expect.

7. You may find there are some instances where blocks disappear when you do this. I am not sure why it happened but it cured itself when I copied the 'regions' settings from the base theme's .info file. If things (eg menu) are missing, go back to the blocks page and put them back where they should be.

NB this works on Drupal 6. Hope this helps someone.
 
CurvedLightSolutions

Posted: 5/27/2009
Quote message 

another very quick hack to remove breadcrumbs

edit file common_methods.php

Find the following line of code :
function art_breadcrumb_woker($breadcrumb) {

Add this line of code after the function name
return (""); // hack for no breadcrumbs

That will do it

Ken
 
Huey

Posted: 6/1/2009
Quote message 

Great work Fatal Flaw! Thanks a lot!
 
Thjorhart

Posted: 8/18/2009
Quote message 

Has the location of the breadcrumb code changed with the latest release of Artisteer? I don't see it in common methods anywhere.
 
Ethan

Posted: 9/2/2009
Quote message 

Yes, it's back in 'template.php' now.
 
Rob

Posted: 9/10/2009
Quote message 

To remove breadcrumbs, I just edited style.css in the theme directory. Search for "breadcrumb" and change the following "display: block;" to "display: none;"
 
Stuck

Posted: 9/23/2009
Quote message 

hi, i would like to delete the 'home' breadcrumb only from my frontpage i.e. homepage, but would like it to appear on the rest

any suggestions? your help will be appreciated.
 
Peter

Posted: 10/22/2009
Quote message 

or u can deleted from ur tpl pages
 
Tobago

Posted: 10/27/2009
Quote message 

Thank you Fatal Flow !

Sub themes are a good issue I was looking for...

I suppose i can use it to override artisteer themes created by, without modify us it is'nt ?

I'm going to lear more about in drupal.org.

Thanks.
 
Leopard

Posted: 12/15/2009
Quote message 

We're a few months ahead now, and the breadcrumbs still cause havoc. Where do I find the relevant codes for Joomla templates?

Any advice greatly appreciated!
 
Luiindezon

Posted: 12/20/2009
Quote message 

In Joomla you can disbale the module 'Breadcrumbs' in the Module Manager
 
Rudy

Posted: 12/21/2009
Quote message 

Hello i am new here and have a question.

How do i remove de div from the home
 
fab

Posted: 5/22/2010
Quote message 

I think I have the best way:
artisteer programmer create a simple quite button to activate/deactivate the function in the creating phase of the theme
8-)
or else a simple check box in theme setting (I'm talking about drupal).
A webmaster buy artisteer to not put hand to code...

that's IMHO

 
ES

Posted: 5/22/2010
Quote message 

there is a module called breadcrumb_disabler (cant remember exactly!) that diasable breadcrumbs. Search at drupal.org
 
Mr. Grizzly

Posted: 5/31/2010
Quote message 

I wanted to remove not just the Breadcrumb text, but also the DIV section.

I edited the template.php in the Theme.

Changed the following lines from this:
[...]
function art_breadcrumb_woker($breadcrumb) {
$breadcrumb = menu_get_active_breadcrumb();
if (!empty($breadcrumb)) {
return '<div class="breadcrumb">' . implode(' | ', $breadcrumb) . '</div>';
}
}
[...]

to this:
[...]
function art_breadcrumb_woker($breadcrumb) {
$breadcrumb = menu_get_active_breadcrumb();
if (!empty($breadcrumb)) {
// return '<div class="breadcrumb">' . implode(' | ', $breadcrumb) . '</div>';
}
}
[...]

Not a huge difference, but works.
 
thomsol

Posted: 6/15/2011
Quote message 

With the 3.0 version and Drupal 7, the file to change is: drupal7_theme_methods.php

The easiest way I've found is to find the function [your_theme]_breadcrumb, and add a line after:

$breadcrumb = $variables['breadcrumb'];

just add the line:

$breadcrumb = "";




 
Bri

Posted: 6/29/2011
Quote message 

Thomsol, thanks for the v7 fix. It does work.

Only problem is, every time you export your theme from Artisteer and re-upoload to Drupal, it defaults the breadcrumbs. So, you have to keep fixing this problem.

Breadcrumbs are worthless, unless you have a navigation menu that goes so deep, that you can get lost. Most sites, I imagine, only have a few main page with a few sub pages. Meaning, breadcrumbs not needed.

Artisteer Staff: PLEASE ADD THIS FUNCTION INSIDE THE UI OF ARTISTEER. JUST GIVE US A BUTTON TO TURN ON/OFF.
 
barry

Posted: 6/29/2011
Quote message 

Why hack the theme.... when there is a simple module to do it....

http://drupal.org/project/disable_breadcrumbs

Worked for me!

 
Bri

Posted: 6/29/2011
Quote message 

Barry is the man! Appreciate it very much.

Install the module from ^above ^ and be done with it. It works perfectly with Artisteer v3 and Drupal 7.
 
Slug

Posted: 7/9/2011
Quote message 

Because disable_breadcrumbs only have works .. you still get a breadcrumb on contact, site map, etc pages.

Slug
 
  Page 1 of 2 Next Last