Dear all,
I'm building my web-site and I set up my own simple Nice-menu put into Panels' flexible pages.
Then I created the "nice_menus_custom.css" ans start to I set new rules for the colors of the nice-menu as link colors, mouse hover colors ... and for the final step I want to know on which page (link) I am!
So I like to have an active color...
This is my issue:
When I'm on my "Home" page, I have the colored active "button" in my website it's "home" with the proper color but when I'm moving to the second page (call: "Link2") the are not active color but only normal link color...
I'am using this code:
ul.nice-menu li a.active{
color: #ffffff;
background: #000000;
}
and I tried this on before, without success:
ul.nice-menu-1 li.active-trail a,
ul.nice-menu-1 li a.active { color: #0f0;}
Looking forward to your reply.
Comments
Comment #1
xiukun.zhou commentedHi.syl_v_1
if your nice_menus verision is 7.x-2.2, then try this #1992154: active-trail class not properly applied or upgrade nice_menus to last version.
Comment #2
syl_v_1 commentedHello xiukun.zhou
thank's for your answer, and here more informations:
My version of:
Drupal: 7.22
Nice Menus : 7.x-2.5
Panels: 7x.33
About my nice_menus.module it is well written, with the space:
if ($trail && in_array($mlid, $trail)) {
$class .= ' active-trail';
So to me it's not coming from there :-(
any other idea?
Comment #3
xiukun.zhou commentedComment #4
int_ua commentedsyl_v_1, did you have multiple languages on your site? I assume you had.
I'm observing Nice Menus setting $trail to $mlids of only one language regardless of another being active. I have en, ru and uk locales and $trail always contains IDs for uk items.
Comment #5
int_ua commentedP.S. Menu translation mode is "Translate and Localize".
Looks similar to https://drupal.org/node/1665308
Comment #6
int_ua commentedWhat I don't understand is that at the same time it works fine for taxonomy terms imported with taxonomy_menu
Comment #7
int_ua commentedmenu_tree_page_data() is to blame and it's not part of this module.
It's core.
Comment #8
caspervoogt commentedIn what way is menu_tree_page_data(0 to blame, int_ua? This seems import to get resolved. I am using 7.x-2.5 as well and running into this.
Comment #9
avpadernoComment #10
astonvictor commentedD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.