Styling for parent link in vertical menu

More
11 years 9 months ago #25113 by pegasus
Oops! Sorry, I missed that part. Yes, it's working now. Thank you! Have a good weekend.

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #25230 by pegasus

you can't do that using maximenu params then because it uses the "active" class that is applied to the entire path until the current item

If you want to do that, you must use your own css and only the class "current", and not "active". The current class is only applied to 1 item and not to the parents


Hi again,

I'm not clear about your recommendation. Do you mean I can't use the Params plugin at all for that menu because it uses "active" rather than "current?" I can add my own CSS but if it has to be completely instead of Params then I'll have to uninstall it altogether or else not use MaximenuCK for that menu, neither of which I want to do. Can you please clarify?

Thanks.

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #25234 by ced1870
you said

What I want is for the parent to show as active only when you're viewing that page, but not when you're just viewing one of its children.

this is not the behavior of the styles generated by the menu
if you use the active state styles from maximenu params, it will apply to the whole path
is it clear ?

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #25238 by pegasus

ced1870 wrote: you said

What I want is for the parent to show as active only when you're viewing that page, but not when you're just viewing one of its children.

this is not the behavior of the styles generated by the menu
if you use the active state styles from maximenu params, it will apply to the whole path
is it clear ?


I appreciate your help and I'm sorry to keep asking you about this, but I'm still kind of stuck. The problem is that I don't see any use of "current" in the code generated for the menu, so I can't use that as a hook for my own CSS. I've tried removing all custom styling for the Active states, and I tried switching between the "Custom styles" and "Idem as hover styles," but the only indicator of the current page is "active." From what you said, it sounded like there was a way to do this. How do I get it to use "current" for the current page?

Many thanks.

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #25243 by ced1870
give me your url to check

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #25247 by pegasus

Please Log in or Create an account to join the conversation.

Time to create page: 0.211 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 924 guests and one member online