0

I'm using the Omega theme with the Delta module. How can I theme the breadcrumb block using block--breadcrumb.tpl.php?
I want to change the output of the block to something similar to the following.

<nav id="breadcrumb">
  <ul>
    <li></li>
  </ul>
</nav>

1 Answer 1

1

You should copy theme_breadcrumb to your theme's template.php file:

function YOURTHEME_breadcrumb($variables) {
  $breadcrumb = $variables['breadcrumb'];
  if (!empty($breadcrumb)) {
      $crumbs = '<nav><ul class="breadcrumbs">'; 
      foreach($breadcrumb as $value) {
           $crumbs .= '<li>'.$value.'</li>';
      }
      $crumbs .= '</ul></nav>';
    }
      return $crumbs;
  }

By this function you can set up a ui li structure.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.