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

1 vote
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,694 views 26 10
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