Active lable in custom menu

Re: Active lable in custom menu

by Mary Evans -
Number of replies: 2
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

#custommenu ul li:active,
#custommenu ul ul li:active,
#custommenu ul ul ul li:active {background-color: red; color: white;}

In reply to Mary Evans

Re: Active lable in custom menu

by Prakash Pa -
Hi,


I added menu items in admin. Now menu is showing up. But the current item is not shown as active. I managed to fix it by writing my own code. But if I select the child category, the parent is not highlighting. Please help. Does the moodle menu supposed to do this automatically?

Thanks,

Prakash Pa

In reply to Prakash Pa

Re: Active lable in custom menu

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Well we are not magicians and don't read minds, so we cannot help you, as you did not give us the version of Moodle that you are using. Nor did you say which theme as there are two sets of menu code in Moodle since version 2.5.

Also this old discussion relates to Moodle 2.3, but I doubt you are using that version -or are you? If you are,  then just copy the CSS I added in my last comment.

Thanks,

Mary