As so many people requested, here's a short guide on how to get nice menus into OP2.0 installation.
First download the nice menus module from here.
Install the module as usual into the Drupal installation (sites/all/modules).
Go to admin/build/modules and enable the module
Then go to admin/settings/nice_menus. Set it to the number of nic menus you want (I use 1)
Then go to admin/build/block and configure your "Nice menu 1"
Set your menu parent to primary links, menu depth to "-1" and menu style to "down"
Now go to admin/build/themes/settings. On top there should be something like this: Path to custom Nice menus CSS file:
Add your custom css (one is provided as attachment) for example sites/all/themes/yourtheme/css/menu.css and save.
That's the first and easy part!
Second, go to your theme folder on the server and edit yourtheme.info.
Beneath regions[footer] = Footer
place the following line.
regions[nicemenu] = Nice Menu
Now save yourtheme.info.
Then edit yourtheme/page/page-header.tpl.php
Search for the following:
<?php
if (isset($primary_links)) :
?><?php
print theme('links', $primary_links, array('class' => 'links primary-links'))
?><?php
endif;
?><?php
if (isset($secondary_links)) :
?><?php
print theme('links', $secondary_links, array('class' => 'links secondary-links'))
?><?php
endif;
?>And delete that part!
Place the following text in there:
<?php
if ($nicemenu):
?>
<?php
print $nicemenu;
?><?php
endif;
?>Now save your page-header.tpl.php
Then clear your cache (admin/settings/performance) or (devel/cache/clear).
Then go to admin.build/context and edit the sitewide context.
In the region called "Nice Menu" place the block "nice menu 1" and you should be alll set.
A working example can be found @ http://publish.t-wipje.nl/
A custom css is provided as attachment.
Ronald
| Attachment | Size |
|---|---|
| menu.txt | 6.61 KB |