Hi all.

I'm trying to get Nice Menus working on my Drupal 6.10 install in a Zen theme (Zen 6.x-1.0). Seems like something a lot of people would do, however I keep running into a compatibility issue with Firefox. I can't get the entire dropdown menu to display. I've spent the last 3 days reviewing the Drupal search results and issue queue results and can't get it fixed.

The Zen subtheme is a fresh install... no changes whatsoever, as is Nice Menus.

As I'm trying to document this process to make it easier for others in the future as the most basic way of getting dropdown menus working in Zen. This is what I've done so far:
1. Fresh install of Zen Subtheme (based on STARTERKIT)
2. Enable theme and nice menus
3. Copied page.tpl.php from zen/zen/page.tpl.php to zen/mytheme/page.tpl.php
4. Changed line:
print theme('links', $primary_links);
to:
print theme('nice_menu_primary_links');
5. Modified layout.css. Commented out "overflow: hidden;" in navbar class (line 292)

From what I read, that should be it. But it's not. I tried moving the navbar class around in the page.tpl.php file, but this didn't work. I also tried changing Z indexes and this didn't work either.

Does anyone have any idea what is causing this? Usually all the problems are with IE, so this one is a strange one!

Thanks,
Ryan

CommentFileSizeAuthor
nav-in-header.png104.46 KBbigkevracer

Comments

talatnat’s picture

Just confirmation: Yes, this happens -- but I cannot say if it is a Zen-theme behavior or a Nice Menus one. I seem to recall that the Zen Classic theme behaved OK with Nice Menus, but I don't have an easy setup to check that recollection now.

Subscribing.

bigkevracer’s picture

Thanks talatnat - everything I read indicated that it does happen, which can be really frustrating for some people. So hopefully once I have the answer I can put this up in plain English so we never have to answer this question again!

I figure Zen would be a fairly common theme people would try and use this with, since from my research its what you're probably best using when you first try to write your own theme (and thats certainly why I'm using it).

jolidog’s picture

It really seems like a overflow hidden property.

On point 5. you refer to changing layout.css. "Commented out 'overflow: hidden;' in navbar class (line 292)"
That's fine but it's not affecting your subtheme. Did you create a mytheme.css file? That's the one you have to modify.

Are you using firebug to see the code?
If not install it and try do navigate trough the code checking for overflow hidden properties along the way. You should see the property on the layout.css replaced by the same property in mytheme.css.

Check it out and report back if it helped you...

bigkevracer’s picture

Hi there Jolidog.

Yes I did create mytheme.css, and commented out that line in that file. I was using Firebug too.

I have, however found the problem. For some reason even though Zen was set to rebuild the theme registry on every page, it wasn't doing it. Turning all the caches off and clearing them has fixed it all and everything is working great!

Hopefully this helps others who might have the same problem!

jolidog’s picture

Great!

Also I sugest instaling the http://drupal.org/project/admin_menu and the http://drupal.org/project/devel modules that help with creating themes.
They make it easy performing several tasks, like flushing all the caches whenever needed.

add1sun’s picture

Category: bug » support
Status: Active » Fixed
mavvy’s picture

hi, any progress on this issue? i'm using drupal 6.12 and a fresh 6.x-1.0 zen subtheme and nice menus 6.x-1.3 ... there is no

print theme('links', $primary_links);

to change to something else...

bigkevracer’s picture

It will be in your page.tpl.php file - it is by default.

You need to copy that file out of the default Zen dir and put it in your subtheme dir, then edit your heart out!

jeff00seattle’s picture

Within Zen Classic page.tpl.php, I had added the following, but theme_nice_menus_primary_links(); returns an empty string.

if (in_array('nice_menus', module_list())) {
  print theme_nice_menus_primary_links();
}
else {
  print theme('links', $primary_links);
}              

Ideas why???

bigkevracer’s picture

look at Step 4 in my opening post - you want nice_menus_primary_links();, not theme_nice_menus_primary_links();

Give that a try and let me know how you go!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

knoxweb’s picture

Status: Closed (fixed) » Active

I know this issue is closed but nothing has seemed to work here for me. I still cannot get my nice menus to work in Firefox. I apologize for being new at this and I have tried to locate all of the "overflow:hiddens" that may be causing the problem. I had comment out ones and then tested the site to no avail, so I commented them back in. The site I am having problems with is http://thruthelookingglassmurals.com/. Can any of you Drupal gurus help! It would be so much appreciated. Everything is working fine in Chrome and other browsers but not in firefox. Firefox just doen not seem to want to render up the nice menus in the navbar

avpaderno’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, since Drupal 4.x, 5.x, and 6.x are now not supported.