Trying to hide My Courses in navigations menu

Trying to hide My Courses in navigations menu

by Peter Diedrichs -
Number of replies: 2
Picture of Particularly helpful Moodlers

I am trying to hide My Courses completely from the users navigations menu. I am using the Clean theme and Moodle 3.6.4 

Can this be done in navigationlib.php?

Why I want this:

The My Courses option in the navigations is quite useless, especially when you have a lot of courses. The later versions of moodle has far better ways to show the users courses in configurable ways on the dashboard. Also the Essential them and other themes has good ways to navigate between the courses you are enrolled in.



Average of ratings: Useful (1)
In reply to Peter Diedrichs

Re: Trying to hide My Courses in navigations menu

by Colin Fraser -
Picture of Documentation writers Picture of Testers
I suspect this would be a hack to core code, which may present a number of unforeseen consequences that may be somewhat less than desirable.
In reply to Peter Diedrichs

Re: Trying to hide My Courses in navigations menu

by Jon Bolton -
Picture of Particularly helpful Moodlers Picture of Testers

Try this custom css...

.block_navigation .type_system.depth_2 {display: none;}