How do I hide "All Updates" or "Popular" from the Dashboard sidebar

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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

Please note that all the workaround stated on this page are beyond Atlassian Support Offerings.

Purpose

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:

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

 

OutcomeCode

This is to hide the 'Discover' section in the Sidebar

<script type="text/javascript">
AJS.toInit(function(){
  {
    AJS.$("#sidebar-discover").hide()
  }
});
</script>

This is to hide the 'All Updates' and 'Popular' without removing 'Discover' Section in the Sidebar

<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> 

This is to hide the 'All updates' only 

<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>

This is to hide the 'Popular' only

<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

Last modified on Feb 10, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.