How to hide the Favourites tab

Background

This page is to document the workaround to hide the links to access the logged in users' favourite dashboards


BeforeAfter
Top menu bar

Side bar

Design Considerations:

The Favourites tab was added so that:

  • existing users who are used to the original Jira Favourites can still find it from the Dashboard page
  • users with no folders set up will not be able to navigate to other dashboards

^ Please note the above considerations before applying the workaround

Steps

  1. Log in as an administrator into Jira
  2. Select User Interface > Announcement banner in the System panel or use the shortcut 'g'+'g' and type in "Announcement Banner"
  3. Enter the relevant CSS below into the Announcement field:
    1. Hide Favourites tab from the side bar
      <style>
      #d-side-nav>ul>li#tabs-oFavorites-tab, #d-side-nav>ul>li#tabs-origFav-tab, #d-side-nav>ul>li#tabs-dFolders-tab {
          display: none !important;
      }
      
      #d-side-nav>div#tabs-dFolders, .dtab-content {
          border-top: none;
      	margin-top: 2.5em;
      }
      
      .dtab-content.current {
          display: none;
      }
      
      div#tabs-dFolders {
      	display: block !important;
      }
      </style>
    2. Hide Favourites menu item from the top menu bar
      <style>
      div#dfolder_favourites {
          display: none;
      }
      
      div#d_folder_section {
          border-top: none;
          margin-top: 0;
          padding-top: 0;
      }
      </style>
  4. Set the Visibility Level for the banner to Public if necessary
  5. Click the Set Banner button