Using Ajax (for example on the exposed filters of a View) causes my nice_menu background to change color. I've attached the Before (normal color) and After (after ajax is used on the page) of how the menu looks.

Any help is greatly appreciated.

Thanks.

CommentFileSizeAuthor
after.jpg29.01 KBzdean
before.jpg34.93 KBzdean

Comments

zdean’s picture

Priority: Normal » Critical

Could someone please advise if this sounds like it's a Nice Menus issue or if it might be related to something else.

Thanks.

zdean’s picture

UPDATE

I was using Ajax Load module. When I disabled that module, the problem with nice menus goes away. I've submitted this issue at #707668: ajax_load breaks Nice_menus as well. So, I'm still not sure if the bug is in nicemenus or in ajax_load.

Any further help is still appreciated!

add1sun’s picture

Title: Ajax alters background color of menu » Ajax Load alters background color of menu
Category: bug » support
Priority: Critical » Normal
Status: Active » Closed (fixed)

Based on the info in the other thread, I don't think this is a Nice Menus bug, but a CSS/theme issue. Closing.

fearlsgroove’s picture

Version: 6.x-2.x-dev » 7.x-2.0
Category: support » bug
Status: Closed (fixed) » Active

This is actually still an issue i think. Basically because nice menus loads it's stuff in hook_init, it adds it's css/js even to ajax requests. However those requests don't go through the theme layer. In my case I had overridden nice_menus_default.css in my theme. Ajax stuff was all running in a custom module, and when it ran, nice_menus added it's stuff, but the theme overrides were never called, so the nicely themed menu was swapped out with many elements of the default gray menu.

Hope that makes sense. I'll try to produce a reduced test case at some point, but the issue is loading css/js in hook_init. Not sure if there's any workaround for that given nice menu's use case tho ...

vordude’s picture

Status: Active » Closed (duplicate)

Sending this over here: Since I think that describes the issue in a better way.

http://drupal.org/node/1363316