How do I hide "All Updates" or "Popular" from the Dashboard sidebar
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Please note that all the workaround stated on this page are beyond Atlassian Support Offerings.
There is currently no configuration to hide the All updates or Popular button from the Discover sidebar. The guide below will assist you in a few variety in hiding the All updates or Popular button from the dashboard.
Confluence Admin with large instances may want to hide this function as there are many users who are constantly updating in Confluence. However, there is currently an enhancement request to bring this functionality to Confluence:
Solution
Workaround
Original View of Discover section

To imitate the outcome below, please insert the chosen code below to Administrator ⚙> General Configuration> Look And Feel > Custom HTML in the "At end of the HEAD" session
1 Outcome
1 Code
This is to hide the 'Discover' section in the Sidebar
1
2
3
4
5
6
7
<script type="text/javascript">
AJS.toInit(function(){
{
AJS.$("#sidebar-discover").hide()
}
});
</script>
2 Outcome
2 Code
This is to hide the 'All Updates' and 'Popular' without removing 'Discover' Section in the Sidebar
1
2
3
4
5
6
7
8
9
10
11
<script type="text/javascript">
AJS.toInit(function() {
setTimeout(function() {
if (AJS.$("#sidebar-discover .nav-item-all-updates").length > 0) {
AJS.$("#sidebar-discover .nav-item-container-all-updates").hide();
AJS.$("#sidebar-discover .nav-item-container-popular-stream").hide();
return;
}
}, 100);
});
</script>
3 Outcome
3 Code
This is to hide the 'All updates' only
1
2
3
4
5
6
7
8
9
10
<script type="text/javascript">
AJS.toInit(function() {
setTimeout(function() {
if (AJS.$("#sidebar-discover .nav-item-all-updates").length > 0) {
AJS.$("#sidebar-discover .nav-item-container-all-updates").hide();
return;
}
}, 100);
});
</script>
4 Outcome
4 Code
This is to hide the 'Popular' only
1
2
3
4
5
6
7
8
9
10
<script type="text/javascript">
AJS.toInit(function() {
setTimeout(function() {
if (AJS.$("#sidebar-discover .nav-item-all-updates").length > 0) {
AJS.$("#sidebar-discover .nav-item-container-popular-stream").hide();
return;
}
}, 100);
});
</script>
For more modification on How to hide elements in Confluence using CSS or JavaScript, it can be found at the link: How to hide elements in Confluence using CSS or JavaScript
You can change your Site's default landing page from Dashboard (All Updates) to any space by following the steps in the following link: Configuring the Site Home Page
Was this helpful?