Howto highlight selected menuitem (newbie)

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
mjoukain

Howto highlight selected menuitem (newbie)

Post by mjoukain »

Hi,

At the first my apologize, just learning cms and web-dev..  :-[

Which "sub-system" is responsible for highlighting/bolding menuitem? Is it done by css, templates or..? I mean simple:

Home
Something
Somethingmore

and when Home is active it's e.g. bolded.

Thanks,
-- MJo
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Howto highlight selected menuitem (newbie)

Post by tsw »

menu template can add classes to the rendered ul li hierarchy, from cssmenu.tpl comments:

.menuparent - The class for each that has children.
.menuactive - The class for each that is active or is a parent (on any level) of a child that is active.

so you can use css to style it with

li.menuactive {
font-weight:bold;
}

hope this helps
Locked

Return to “CMSMS Core”