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

Add navigation node keys to allow themers to hide navigation tabs

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0
    • 4.0
    • Themes
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-74229-master
    • Hide
      1. Login as admin
      2. Navigate to Site Administration > Appearance > Themes > Theme Boost
      3. Click the advanced settings tab
      4. In the RAW SCSS field add this css:

      .primary-navigation li[data-key="courses"] {
      	display: none;
      }
      

      1. Save changes
      2. Verify the 'My courses' link is no longer shown in the primary navigation
      Show
      Login as admin Navigate to Site Administration > Appearance > Themes > Theme Boost Click the advanced settings tab In the RAW SCSS field add this css: .primary-navigation li[data-key= "courses" ] { display: none; } Save changes Verify the 'My courses' link is no longer shown in the primary navigation

      In the navigation drawer prior to 4.0 the data-key attribute was added to each navigation item so themers can target these element.

      Adding the data-key attribute to the primary and secondary navigation would allow themers to do the same

            basbrands Bas Brands
            basbrands Bas Brands
            Tim Hunt Tim Hunt
            Andrew Lyons Andrew Lyons
            Gladys Basiana Gladys Basiana
            Votes:
            6 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 5 minutes
                1h 5m

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