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.


1 answer

1 accepted

This widget could not be displayed.
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 Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

462 views 6 6
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