First of all apologies, I am sure this has been asked before, in my defence I did look through the forum but could not find an answer, I think.

I would like to set up secondary links to be displayed at the top of the page.

By modifying the theme I got them to appear where I want them, but, the breadcrumb also appears with them. If I comment out the tag for the secondary links then the breadcrumb goes back to where it should be.

This is what I have in page.tpl.php:

    <?php if (isset($secondary_links)) { ?><div id="secondary"><?php print theme('primary', $secondary_links) ?></div><?php } ?> 
  <div id="header"><!-- begin header -->
   <?php if ($logo) { ?><div id="logo"><a href="<?php print $base_path ?>" title="<?php print $site_name ?>"><img src="<?php print $logo ?>" alt="<?php print $site_name ?>" /></a></div><?php } ?>
   <?php if ($site_name) { ?><h1 class='site-name'><a href="<?php print $base_path ?>" title="<?php print $site_name ?>"><?php print $site_name ?></a></h1><?php } ?>
    <?php if ($site_slogan) { ?><div class='site-slogan'><?php print $site_slogan ?></div><?php } ?>
    <?php print $header ?>
  </div><!-- end header -->
   <?php if (isset($primary_links)) { ?><div id="primary"><?php print theme('primary', $primary_links) ?></div><?php } ?> 
         <?php print $breadcrumb ?>

What am I doing wrong?

Thank you very much in advance,
PE.

Comments

PartisanEntity’s picture

^bump