Kunena Menu
Styling for parent link in vertical menu
I have a sidebar menu on some pages of the site I'm working on. The top link is the parent page of a section and the other links in the sidebar are children or grandchildren of that parent page. This is a separate menu from the top Main Menu, although it has links to many of the same pages. The sidebar will sometimes contain sub-pages (grandchildren of the top page in that section). The sidebar uses alias links and the base item is set to the Current page.
I want to style it so that all links (including the Parent/top link) show as grey when inactive, light blue on hover and dark blue when active (when that page is being viewed).
The problem is that the top link is always "active" and shows as dark blue. Even when one of its children is active, the top parent always shows as active, presumably because in order to get to the child the path has to go through the parent, thus making its status active.
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. Instead, I want to show the parent link in a different/specific font-weight (800), so that it will always be distinguished, whether it is active or not.
I'm using MaxiMenuCK with Params. I'm unable to achieve this styling behaviour using Params. I've got the top link specially styled in the menu item for normal, hover and active states. When I first added the normal styling, the top/parent was grey when inactive (correct), but after I added the hover and active styling it went back to being constantly dark blue (showing as active when it should show as normal). (attaching a screenshot of this [parentactive])
Also, the hover colouring seems to only cover the < a > link area, not the < li > area. (attaching two screenshots of this showing the top link hovered incorrectly [parenthovered] and a child link hovered correctly [childhover])
So far I've been unable to grab the parent link to override the CSS from my stylesheet too, because Params puts in-line styling in the elements which automatically overrides my override (even when I use !important).
It seems to me I should be able to do this using Params, since it started to do it but then flipped back again, but somehow it's not working. How can I achieve this kind of styling, either using Params or stylesheet CSS?
Thanks for the help. (and keeping a backup of the message this time)
Edited: I should also mention that the sidebar menu also is showing at a higher z-index level than the main menu, so that the dropdown sub-menu links in the top navigation menu (also MaximenuCK) unfolds behind the sidemenu. Attaching a screenshot of this too [blockingmainmenu].
Wendy
Please Log in or Create an account to join the conversation.
I understand, I had some problems with the migration. I shall have closed the forum during this period[Not happy that I have to compose this message all over again after it was deleted by your forum's update last night...]
And do you think about me, that I have to read you many many lines of text ? ...
please next time be more concise
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 itemWhat 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. Instead, I want to show the parent link in a different/specific font-weight (800), so that it will always be distinguished, whether it is active or not.
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
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Sorry, I was trying to be clear and avoid you having to ask more questions.And do you think about me, that I have to read you many many lines of text ? ...
Thanks, I'll try that.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
What about the problem of the top menu dropping down behind the side menu? How can I fix that?
Thanks,
Wendy
Please Log in or Create an account to join the conversation.
www.forum.joomlack.fr/index.php/4-maxime...d-vertical-menu#7919
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.




