Hi!

This theme is wonderful, but I can't see any primary link with it. The code in page.tpl.php contains the following:

<!-- Primary Links -->  
        <?php if ($primary): ?>
          <div id="primary-links" class="clear-block">
        <?php print $primary ?>
          </div>
        <?php endif; ?> 

But the $primary variable contains nothing. Of course, I've defined some primary links in ?q=admin/build/menu-customize/primary-links

However, if I change the above code with the following:

<!-- Primary Links -->
          <div id="primary-links" class="clear-block">
<?php print theme('links', $primary_links, array('class' => 'links', 'id' => 'navlist')) ?>
          </div>

then the primary links appears, but the nice & fancy drop-down menu don't work.

Can anybody help me, please?

Thanks in advance!

Comments

pengi’s picture

I'm not sure why this theme seems to lose track of primary links, but I found the same thing that you did. But I was able to fix it on the blocks admin page, by simply assigning the primary links block to the primary links region. There are so many regions on this theme that perhaps some wire got crossed...might be good if the theme dev could get this issue fixed for a future release.

It's a very nice theme. I'm not very fond of how the tabs look in primary links but otherwise it's very nicely done. Thank you ThemeShark!

neptunethemes’s picture

This is actually by design, but admittedly unnecessary - as pengi stated, the links have to be assigned to the Primary Links region on the Block admin page. I built it this way because I thought being able to swap around the links might be handy (for instance, if you suddenly decided after that you wanted another custom menu to act as the primary menu). Turns out it mostly just serves to confuse people. Hehe.

pengi’s picture

I'm not well versed on the ins and outs of theming drupal, but the idea you had seems like a good one. Could you leave the ability to swap menus in and out of primary links, but somehow have the 'main' primary links menu be assigned to the primary links region by default? Then no one would be confused after first installing the theme, and the flexibility would remain.