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.

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 a future request that is marked as "Unresolved"  CONF-43399 - Getting issue details... STATUS

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 disable the Discover section in the Sidebar

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

This is to disable the All Update 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-all-updates").hide();
				AJS.$("#sidebar-discover .nav-item-popular-stream").hide();
				return;
			}
		}, 100);
	});
</script> 

This is to disable the All update 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-all-updates").hide();
				return;
			}
		}, 100);
	});
</script>

This is to disable 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-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


Last modified on Mar 21, 2021

Was this helpful?

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