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: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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 Dec 23, 2022

Was this helpful?

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