Skip to main content

Post categories

  • Drupal Tips & Tricks
  • Drupal Howtos
  • Drupal Themes
  • X Twitter
  • youtube
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact

Breadcrumb

  1. Home
  2. HowTos
  3. How to disable the breadcrumb or menu trail using Drupal 7?

How to disable the breadcrumb or menu trail using Drupal 7?

HowTos
June 15, 2013
Profile picture for user drupal
By drupal
  • facebook-f
  • twitter
  • envelope
  • print
119

Breadcrumbs, breadcrumb trail or menu trail is a navigation aid used in user interfaces. It allows users to keep track of their locations within programs or documents. Typical breadcrumbs look like this: Home page > Section page > Subsection page. In many themes the breadcrumb is show somewhere above the main content section. You have the following options to disable the breadcrumb all together or for certain elements or individual pages.

Solution

Option 1: CSS

You can disable the breadcrumb completeley with the following CSS code:

.breadcrumb {display: none;}

You can also disable it for certain elements or pages. To do this you will need to use element or page indicator in your CSS. For example, for your blog pages this might be ".page-blog". You can also use the node numbers for each page in the form of ".page-node-62".

For the pages you don't want the breadcrumb to appear your code will look like:

.page-node-62 .breadcrumb {display:none;}

Option 2: page.tpl.php

You can remove the display of the breadcrumb also by deleting or deactivating the corresponding code in the page.tpl.php (sites/all/themes/themename/). In the example of Danland this is the following code:

Module discable breadcrumb
Themes

Read more articles

Newer
"From address" doesn't work in Forward Module. How to solve the issue?
Older
How to make CSS modifications the proper way in Drupal 7
  • Log in to post comments
Profile picture for user drupal
drupal
119
1
min read
A- A+
  • facebook-f
  • twitter
  • envelope
  • print

Contact Drupal 4U

Get in touch for questions and our Drupal development, design and SEO services.

Contact Us

We aim to reply the latest within 48h.

About Drupal 4U

We are a group of Drupal designers, developers and webmasters and we launched this website to share our experience and knowledge with you. Drupal is a free software package that allows you to easily organize, manage and publish your content, with an endless variety of customization. Drupal is open source software maintained and developed by a very large community of developers and users.

  • X Twitter
  • youtube

Drupal Services

  • Drupal Web Design
  • Drupal Development
  • Drupal SEO
  • Drupal Migration

Drupal 4U

  • Services
  • Showcases
  • Themes
  • Blog
  • About

Drupal Links

  • Official Drupal Website
  • Drupal Answers
  • More Than Themes
  • Theme Forest
  • DXPR: Drupal for Marketers
2012 - 2025, Drupal 4U

Footer menu

  • Contact
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact
Clear keys input element