Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-82998

Hide My courses from navbar

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.4.2
    • Navigation
    • MOODLE_404_STABLE
    • Hide

      Add the following to your theme config.php file:

      $THEME->removedprimarynavitems = ['courses'];
      

      Show
      Add the following to your theme config.php file: $THEME->removedprimarynavitems = ['courses'];

      We have a lot of customers where the users are just following a few courses. The "/my| with the course overview block and a text block with some small explanation is sufficient. A separate "My courses" page is too much for those sites and users. It just means more clicks. Since we cannot put blocks or additional info on the "my courses", it won't work to disable the "/my".

      Usually we hide the "My courses" from the nav bar with the following CSS: [data-key="mycourses"] {display: none;}. Unfortunately, if the screensize is smaller, the nav bar becomes a hamburger menu. The element [data-key="mycourses"] doesn't exist in the hamburger menu. So we there is no proper way to use css to hide the "my courses" from that.

      At /admin/settings.php?section=navigation you can enable/disable the dashboard. It would be nice if you can enable/disable "my courses" as well. 

       

            Unassigned Unassigned
            jaroncohen Jaron Cohen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.