I'm trying to add a static list before the breadcrumb function is used in the page.tpl.php:

The $breadcrumb already has a div surrounding it. When I take a look at it in my page source view:

How do I get rid of the 2nd div location? I have looked into the theme-settings.js, theme-settings.php, and template.php.

I just wanted to put in my static html of

Comments

lnspham’s picture

akalata’s picture

Status: Active » Fixed

When you want to post code, you should enclose the HTML between <code> tags - see the second bullet below the Comment box.

The breadcrumb is created by the zen_breadcrumb theme function. Line 28 of the STARTERKIT template.php acrually uses theme_breadcrumb as an example. Copy that code from Zen's base template.php (lines 31 to 67 or thereabouts), rename to YOURTHEME_breadcrumb, and edit the line that adds the div:

return '<div class="breadcrumb"><a href="" rel="nofollow">prospective students</a> &gt; <a href="" rel="nofollow">academic degree programs</a>  &gt;  <a href="/envdev/drupal/" rel="nofollow"> occupational &amp; environmental medicine</a>  &gt;  ' . implode($breadcrumb_separator, $breadcrumb) . "$trailing_separator$title</div>";>

Instead of hardcoding this addition to the breadcrumb, you might want to look into breadcrumb manipulation modules, such as Custom Breadcrumbs. I'm not sure if it will do what you need, but it might be a good starting point.

lnspham’s picture

@ akalata THANKS! I worked!!

I added it in the beginning but I include "rel="nofollow" and I was missing a syntax.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.