Issue removing Spaces dropdown menu from an entire space

I am trying to remove the Spaces drop down menu from a single Space in Confluence.  I have looked at this page :
https://confluence.atlassian.com/confkb/how-to-hide-elements-in-confluence-using-css-or-javascript-313458894.html

and ended up selecting 

Spaces | Space Directory | MySpace | Edit Space Details | Look And Feel | Stylesheet

I have added the following:

#space-directory-link {  

    display:none !important;  


and saved the changes.  Upon reloading my Space, the Space drop down menu is still there.  I am not sure what I am doing wrong here.  The web linbk above says that because I am doing it in the StyleSheet I do not need the <style> and </style> tags and I cannot see anything obviously wrong with what I have entered.

I have tried the same with the people-directory-link selector and it works as expected but the space-directory-link selector does not.

1 answer

1 accepted

2 votes
Answer accepted

It seems like the name has changed in more recent versions of Confluence.  It is no longer "space-directory-link", it is now "space-menu-link".  If you use that name, it should work.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,608 views 4 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you