I want to move the breadcrumb below the title.

TITLE
---------------------
breadcrumb > breadcrumb

How do I do that with omega sub theme?

Comments

Salah Messaoud’s picture

I'm not certain about what your configuration is, so my solution may not be exactly what you need but hopefully it will provide you with an example of something similar that you can adapt.

In my case I needed to move the breadcrumb from the top of zone-content to the top of region-content, just above the blocks and content.

I inserted this code into /MYTHEME/preprocess/preprocess-region.inc (if you dont have one create it)

function MYTHEME_alpha_preprocess_region(&$vars) {
  $theme = alpha_get_theme();

  if ($vars['elements']['#region'] == 'content') {
    $vars['breadcrumb'] = $theme->page['breadcrumb'];
  }
}

Then I overrode zone--content.tpl.php by copying it to /MYTHEME/templates/zone--content.tpl.php and deleted the reference to $breadcrumb so it looked like this (see no more reference to $breadcrumb):

<?php if ($wrapper): ?><div<?php print $attributes; ?>><?php endif; ?>  
  <div<?php print $content_attributes; ?>>    
    <?php if ($messages): ?>
      <div id="messages" class="grid-<?php print $columns; ?>"><?php print $messages; ?></div>
    <?php endif; ?>
    <?php print $content; ?>
  </div>
<?php if ($wrapper): ?></div><?php endif; ?>

Then I overrode region--content.tpl.php by copying it into /MYTHEME/templates/region--content.tpl.php added the reference to $breadcrumb (in my case just above the title)

<div<?php print $attributes; ?>>
  <div<?php print $content_attributes; ?>>
    <a id="main-content"></a>
    <?php if ($breadcrumb): ?>
      <div id="breadcrumb"><?php print $breadcrumb; ?></div>
    <?php endif; ?>    
    <?php print render($title_prefix); ?>
    <?php if ($title): ?>
    etc....

I hope this helps.

priyanka.tawde’s picture

Issue summary: View changes

thanks alot, its solve my issue also.