Posted by cardiffsteve on February 11, 2013 at 10:42pm
I've installed nicemenus with my Omega theme, mainly because I didnt have a clue how to theme the menu and thought this would help, and I now have the debug bar showing to the right of my menu (see screenshot attached). Its not really causing a problem (yet) , but wanted to check I've done everything properly.
As there is no page.tpl with omega (?), I have inserted the code I found on youtube (source on drupal.org node 240831), into 'region--menu.tpl'. Placed this in my subtheme folder under Templates.
<div<?php print $attributes; ?>>
<div<?php print $content_attributes; ?>>
<?php if ($main_menu): ?>
<nav class="navigation">
<?php $menu = theme('nice_menus', array('id' => 0, 'direction' => 'down', 'depth' => 1, 'menu_name' => 'main-menu', 'menu' => NULL)); ?>
<?php print $menu['content']; ?>
</nav>
<?php endif; ?>
<?php if ($secondary_menu): ?>
<nav class="navigation">
<?php print theme('links__system_main_menu', array('links' => $main_menu, 'attributes' => array('id' => 'main-menu', 'class' => array('links', 'inline', 'clearfix', 'main-menu')), 'heading' => array('text' => t('Main menu'),'level' => 'h2','class' => array('element-invisible')))); ?>
<?php print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('id' => 'secondary-menu', 'class' => array('links', 'inline', 'clearfix', 'secondary-menu')), 'heading' => array('text' => t('Secondary menu'),'level' => 'h2','class' => array('element-invisible')))); ?>
</nav>
<?php endif; ?>
<?php print $content; ?>
</div>
</div>Is this correct, is it meant to show the debug bar to the side of the menu after doing this? Also , are there any good tips/tricks for css menus for Omega?
| Attachment | Size |
|---|---|
| nicemenu problem.jpg | 19.56 KB |
Comments
You can do it this
You can do it this way.
Optionally, the Nice Menus module provides blocks for you, which can then be configured & placed into the menu region via the blocks administration page (/admin/structure/blocks). When you use the blocks provided by the module, you probably want to disable Drupal's default settings to display the main menu (and possibly secondary menu, depending on your desired output). You can configure the Nice Menus settings (/admin/config/user-interface/nice_menus) to add as many dropdown blocks as you need.
The debugging blocks can be turned on or off in your theme's 'Debugging' settings (/admin/appearance/YOURTHEME).
Thats really helpful, many
Thats really helpful, many thanks. I have also tried Superfish which provides lots of CSS, so I will have a play around with that too. I must admit Omega is extremely adictive, I have also tried Zen, but keep coming back to Omega.