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

xiukun.zhou’s picture

Status: Active » Needs review

Hi.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.

syl_v_1’s picture

Hello 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?

xiukun.zhou’s picture

Version: 7.x-2.2 » 7.x-2.5
Issue summary: View changes
Status: Needs review » Active
int_ua’s picture

Assigned: syl_v_1 » Unassigned
Category: Support request » Bug report

syl_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.

int_ua’s picture

Title: Active link color only on home page and not on others! » active-trail class not applied with i18n_menu

P.S. Menu translation mode is "Translate and Localize".

Looks similar to https://drupal.org/node/1665308

int_ua’s picture

What I don't understand is that at the same time it works fine for taxonomy terms imported with taxonomy_menu

int_ua’s picture

menu_tree_page_data() is to blame and it's not part of this module.
It's core.

caspervoogt’s picture

In 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.

avpaderno’s picture

Version: 7.x-2.5 » 7.x-2.x-dev
Issue tags: -color active page
astonvictor’s picture

Status: Active » Closed (outdated)

D7 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.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.