I've started putting together a site using the bartik theme, however I've got what looks like a very simple problem which occurs on pages which I add and not on the homepage itself.

If I choose one of the pages by clicking on its menu tab, I get a text link which says "Home" appearing below the tabs, but above the navigation bar/menu. How do I remove this please?

Comments

VanD’s picture

Looks like it might be these lines in the page.tpl.php file

<?php if ($logo): ?>
      <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
        <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
      </a>
    <?php endif; ?>

So you can either turn off Logo in the theme settings, or go into the file and remove this line

<a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">

- Craig Vanderlinden @cvanderlinden

Lars Bo Jensen’s picture

In order to remove the extra "Home" in your Bartik 7 on Drupal 7 you need to disable the breadcrumbs.
Open themes/bartik/templates/page.tlp.php and comment out or delete these lines:

    <?php if ($breadcrumb): ?>
      <div id="breadcrumb"><?php print $breadcrumb; ? ></div>
    <?php endif; ?>

I am no fan of editing theme or core files, but this works for me (Bartik Plus on Drupal 7.7).

Read more at http://drupal.org/node/52278 or search Modules for 'breadcrumbs'; e.g. http://drupal.org/project/disable_breadcrumbs

tomarsh’s picture

If I understand correctly what you want to do is remove the "Home" tab which is located in the main menu (usually the first tab).
All you have to do (in Drupal 7) is go to Structure => Menus
For main menu click on "List Link"
Untick Home.

That's it.

d8nnii’s picture

If you use a custom .css file, just type in the following code, save it and you're done:

#breadcrumb { display:none; }

otherwise just put the code in: themes-->bartik-->css-->style.css

SuperSam’s picture

Many thanks! Worked perfectly

kappadelta07’s picture

This worked perfectly for me as well thank you!

Rinkema’s picture

I wonder if this problem was resolved for Lucretla.

I have the same problem, and tried all of the above. None of them worked. Granted, I am a novice, so I may be messing up in some other way...

For one, the problem as I have it, is not Breadcrumbs. It is a 'home link' appearing on pages that are not the homepage. (breadcrumbs would work the other way). I am experiencing it in Bartik theme, Drupal 7.9.

Interestingly, when I go to Home » Administration » Structure » Demonstrate block regions (Bartik), it shows me the regions (in yellow). I also see the infamous home-link on that screen (in blue, as a clickable hyperlink). This makes me wonder if this link is somehow hard-coded into the Bartik theme, because it seems to bypass the regions/blocks altogether. But why?

Other suggestions would be appreciated. Thanks,

gyunei’s picture

I'm experiencing the same issue as Rinkema. I've followed some of the other suggestions in the thread (e.g. disabling logo) but no luck. Any advice would be welcome.

bcjmpr’s picture

Try the following: Appearance > yourTheme_Settings > Breadcrumb tab > uncheck the 'Show the homepage link in breadcrumbs' option. That should make the link disappear.

gyunei’s picture

I don't see to be able to locate that option for Bartik 7.9...

bcjmpr’s picture

Sorry, I misread the question and I'm using a different theme. However I switched to Bartik to check it out and it worked with the following:

Go to drupal/themes/bartik/templates/page.tpl.php and comment ­-or remove­- this line only
print $breadcrumb;

That did the trick for me :)

gyunei’s picture

Works like a charm - many thanks!

Rinkema’s picture

Remove­:

print $breadcrumb; 

That is the only way that I could get it done...

pboyerjr’s picture

Ok so I've done what's listed. I opened it with notepad and made the change. I then logged into 1and1 and drilled into to find the path to upload back to.When I upload I get a READ ONLY error. I tried to change the permissions but I get ERROR OCCURRED. Help me please?? Thanks in advance to anyone with advice.

rantebi’s picture

Go to Structure > Menus > Structure (Tab).
(also via admin/structure/menu/settings)

Set "Source for the Main links" to "No main links".

Web Agent’s picture

That worked for the menu.. Cheers..

kbrinner’s picture

There is a simple module called Disable Breadcrumbs that will do this for you too.

Web Agent’s picture

This is the best alternative but I find that when I use special content types or the blog module the breadcrumbs come back, so I still end up having to do it manually.

heyjude’s picture

Thankyou - easy solution.... #breadcrumb { display:none; } in the style.css works after clearing the computer cache

haschemi’s picture

Dear Friend
I have same Problem try this it may help you :
Home » Administration » Appearance » Settings » Bartik
In "Toggle display"
remove check mark "Site name"
Save Configuration
Regards
Amin Haschemi

new123456789’s picture

I am trying to remove the breadcrumb from the homepage (Home link). I am using a bartik theme. I have a page--front.tpl.php and have tried removing the following code snippets and clearing the cache, but the Home breadcrumb is still there. Any help would be greatly appreciated

   <?php if ($logo): ?>
      <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
        <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
      </a>
    <?php endif; ?>

    <?php if ($breadcrumb): ?>
      <div id="breadcrumb"><?php print $breadcrumb; ?></div>
    <?php endif; ?>
gabrielZ’s picture

If you have path breadcrumbs module installed. Go to structure > Path breadcrumbs > path breadcrumbs settings, then check the "Hide breadcrumbs navigation for single breadcrumb", save configuration, refresh page. Done.

ravis’s picture

To remove breadcrumb from bartik theme, follow these simple steps:
------------------------------
1) open templates/page.tpl.php in any text editor

2) Find and delete following codes:

<?php if ($breadcrumb): ?>
  <div id="breadcrumb"><?php print $breadcrumb; ?></div>
<?php endif; ?>

Done!!

I work at Drupar.com

knalstaaf’s picture

If you only want to remove the "Home" bit, you can do so with this code:

function YOURTHEMENAME_breadcrumb($variables) {
  $breadcrumb = $variables['breadcrumb'];
  if (!empty($breadcrumb)) {
    // Provide a navigational heading to give context for breadcrumb links to
    // screen-reader users. Make the heading invisible with .element-invisible.
    $output = '<h2 class="element-invisible">' . t('You are here') . '</h2>';

    array_shift($breadcrumb); // Removes the Home item
    $output .= '<div class="breadcrumb">' . implode(' » ', $breadcrumb) . '</div>';
    return $output;
  }
}

(Source)

thambar’s picture

Hi all.
Pardon me, I'm a newbie in Drupal. I need to remove the "home" link from bartik theme that appears in all my pages.
I install "Disable breadcrumbs" module but I neded a little help for the right configuration. Who can help me?

mmjvb’s picture

Go to Structure->Menus, edit menu of Main navigation, take away the check mark of Enabled and save.

thambar’s picture

Pardon, I mean the text link in D7.
Problem solved with "Disable breadcrums" module. Finally found the right configuration, thanks all.