How do I set the side bar show/hide button to default to "hide" in certain spaces?

We would like to hide the side bar in some spaces by setting the show/hide button to default to "hide" instead of "show." Is there some sort of setting in Confluence that allows changing this default on a space by space basis, or would we need to use JQuery? If the latter, what would you recommend using? We use the documentation theme in the spaces concerned and run Confluence 5.4.4.

Thanks!

1 answer

1 accepted

1 vote
Accepted answer
Davin Studer Community Champion Apr 28, 2014

You could write some JavaScipt to progrmatically click the collapse button on page load for the spaces where you want this to happen. I have done this in the past.

Thanks. :) Any suggestions on what code to use or code resources? I'm a newbie to JavaScript.

Davin Studer Community Champion May 02, 2014

Are you using the default theme or documentation theme?

Documentation theme.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

819 views 40 5
Join discussion

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