Removing "Log In" from a Space in Confluence 4


I'm wondering how to remove the "Log In" link from a Space in Confluence 4. I'm setting up a customer facing knowledgebase, which is read or view only. We do not want the customers to log in to the knowledgebase (nor can they leave comments). For this Space, I want to remove the Log In link, so that there isn't any confusion in case a customer sees the link and tries to log in. For other Spaces, I want to leave the Log In link visible - I'm also setting up an intranet for our staff, who will need to be able to log in.

Any ideas where this can be configured? I was looking in the Space Admin > Layout > Site Layouts, but nothing there looked like what I wanted. I suspect this is going to be found in the config files on the server itself, which is fine. I am just looking for some pointers or direction before I start mucking about at the CLI.



1 answer

1 accepted

4 votes
Answer accepted
David Simpson Community Champion Sep 26, 2011

This script works for the "Demonstration Space" (which has a spaceKey of "ds") that ships wiith Confluence

Browse to Confluence Admin | Look and Feel | Custom HTML

In At the end of the HEAD, paste:

    if (AJS.params.spaceKey == 'ds') { 
      $('#login-link,#browse-menu-link').parent().hide(); // Hide the login & browse menu

Then Save.

Change the 'ds' bit to whatever the spaceKey is for your space.


That worked perfectly, thank you. One last question - I want to do the same with the "Browse" link. I tried to add in another script under the one that hides the "Log In", but it's not working. I suspect this is because I don't know the proper name for "Browse". Do you know what that would be, or at least know where I could look for it?



David Simpson Community Champion Sep 26, 2011

Alan, I've updated the answer to include removal of the "Browse" menu too.

-- Cheers, David


That worked also. Many thanks.

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,227 views 2 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