Hi,

Can anybody tell me if it is possible to remove the navigation trail "YOU ARE HERE" and if yes what the procedure is?

Thanks,
mentus

Comments

retorq’s picture

You have to edit it out of the template.php file here's my code:

/**
 * Return a themed breadcrumb trail.
 *
 * @param $breadcrumb
 *   An array containing the breadcrumb links.
 * @return a string containing the breadcrumb output.
 */
function phptemplate_breadcrumb($breadcrumb) {
/**  if (!empty($breadcrumb)) {
      $breadcrumb[] = drupal_get_title();
        array_shift($breadcrumb);
       return '<div class="path"><p><span>'.t('You are here').'</span>'. implode(' / ', $breadcrumb) .'</p></div>';
  } */
  }
fergrorke’s picture

Thanks for the tip.

mentus’s picture

Excellent, it worked. Thank You

preyer’s picture

If you just want to remove the "YOU ARE HERE BOX" edit the template.php function as follows:

/**
* Return a themed breadcrumb trail.
*
* @param $breadcrumb
*   An array containing the breadcrumb links.
* @return a string containing the breadcrumb output.
*/
function phptemplate_breadcrumb($breadcrumb) {
/**  if (!empty($breadcrumb)) {
      $breadcrumb[] = drupal_get_title();
        array_shift($breadcrumb);
       return '<div class="path"><p>'. implode(' / ', $breadcrumb) .'</p></div>';
  } */
  }

notice the line return '<div class="path"><p>'. implode(' / ', $breadcrumb) .'</p></div>'; has been modified

LejfM’s picture

Version: 6.x-1.8 » 6.x-2.4

I want to remove the the whole string with "edit" "translate" and "you are here"... when I folow the instruction i #1 I get a failur in the page.tmp , do I have to remove any thing inside there too .

centralh2o’s picture

I'm not sure if this helps or not. I'm pretty new to editing this type of code, but when I used the version in #1 it caused an error. This is what I did to fix it:

/**
 * Return a themed breadcrumb trail.
 *
 * @param $breadcrumb
 *   An array containing the breadcrumb links.
 * @return a string containing the breadcrumb output.
 */
function phptemplate_breadcrumb($breadcrumb) {
  if (!empty($breadcrumb)) {
      $breadcrumb[] = drupal_get_title();
        array_shift($breadcrumb);
       return '<div class="path"><p><span>'.t(' ').'</span>'. implode(' / ', $breadcrumb) .'</p></div>';
  }
  }

All I changed is I took out the "You are here" from this line:

       return '<div class="path"><p><span>'.t(' ').'</span>'. implode(' / ', $breadcrumb) .'</p></div>';

and took the */ out of the second to last line. I found that the original Marinelli template.php code that I downloaded didn't have the */ and adding that broke it. So really all I changed from the original code was I took out the "You are here" so it doesn't show.

Sorry, don't know how to get rid of the "edit" or "translate".

Also, does anyone know how to make it so the breadcrumb doesn't show the title either? I tried deleting the whole breadcrumb code, and it made a mess. Any ideas?

d3c0’s picture

Thanks for the replies!

isthisthingon’s picture

The instructions in #1 worked like a charm. Thanks for that very simple fix. I am a drupal/php idiot, you made it simple for me. Thanks again!

Mike

pam.pkrweb@gmail.com’s picture

How does this work with subtheme? I created a subtheme and like to remove this also. However, when I copy template.php to may subtheme is does not like it. What I am missing? Do I need to rename function or just create new a template. php for my theme and override the function?

Also, thanks for this theme. I am newbie and just been playing with if for a couple hours and was able to do all I have been trying to do with other themes for several days. It been so much easier to customize. Thanks

Pam

d3c0’s picture

I wanted the old breadcrumbs back, so I removed all the code in the template.php file referring to the breadcrumbs.

Then in the page.tpl.php, the line says print $breadcrumbs; . Because the theme isn't modifying the breadcrumbs at all, it inherits the Drupal default (which is what I wanted).

Cheers

Anonymous’s picture

I'm sorry, but this is all too confusing. I just want "regular" plain old breadcrumbs, like "Home > Etc." I'm not sure --from reading this -- what I should edit. I looked in page.tpl.php and could find no

<?php
print $breadcrumbs;
?>

Could someone please walk me through--step-by-step--what to change in template.php and page.tpl.php so that I can have regular breadcrumbs. It seems that it should be one chage in template.php and one chage in page.tpl.php

Thank you so much. And sorry if I'm being thick, I do have a bit of a cold.

Anonymous’s picture

When I remove the "breadcrumb" info from template.php I get an error.

I just need plain old breadcrumbs in one of the subthemes.

HS’s picture

Depending on the version of the theme you're using, you can just remove line 94 from page.tpl.php

Just remove:

<?php print $breadcrumb; ?>

Anonymous’s picture

Get this erro when I delete out breadcumb function from template.php:

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'phptemplate_breadcrumb' was given in /var/www/vhosts/flagship/includes/theme.inc on line 656.

Anonymous’s picture

I changed theme to Garland and then changed back to Marinelli and issue was resolved.

Gus’s picture

An easy way is to edit layout.css. Find;

.path p span { /* you are here text */
padding:5px;
margin-right:10px;
}

and change to;

.path p span { /* you are here text */
padding:5px;
margin-right:10px;
display: none;
}

ShannonK’s picture

Thank you. #16 worked for me! (BTW, for newbies, the layout.css file is in your themes/marinelli/ folder).

Thanks Gus!

kdhavens’s picture

Perfect fix! Thanks!

mstobbs’s picture

Here's the Drupal 7 version of comment #16. I add this override to a custom.css file so I don't have to worry about updates to layout.css.

/* Hide you are here text in breadcrumb */
section#breadcrumb h2 {
display: none;
}

oadaeh’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

This issue is being closed because it is against a branch for a version of Drupal that is no longer supported.
If you feel that this issue is still valid, feel free to re-open and update it (and any possible patch) to work with the 7.x-4.x branch.
Thank you.