How Do I get the Documentation Sidebar to not Default to Hidden?

For some reason in Confluence, the documentation theme Sidebar is always hidden until the user hits the button at the top of the page. How do I get it to default to being showed upon login?

2 answers

1 accepted

3 votes
David Simpson Community Champion Jun 26, 2012

Edit the Custom HTML in the Confluence Admin section. In At the end of the HEAD add:

<script>
  AJS.toInit(function(){
    AJS.$('#splitter-button.collapsed').click();
  });
</script>

Thanks! This got the job done!

The default behaviour as far as I know is for the sidebar to be shown, not hidden. I'd suggest seeing if any JavaScript errors occur during page load, which may relate to the sidebar. Are you seeing the same behaviour in all browsers? What version of Confluence / Documentation theme are you using?

Yep. It's in both Chrome and Firefox, and it's something that's affecting all of my users. Using Firebug, I'm not seeing any JS errors. So, I don't know what it could be. Do any of you know what it could be, or potentially any way to force the system to show it?

I'm using confluence 4.2.2 and Documentation version 4.2.2

I'm having the same issue, I think. I'm running versino 4.2.4 of Confluence and the Documentation theme. The theme works fine in IE8, but it looks like the initialisation script is not running in Firefox. I can see the Documentation Theme header and footer, but not he sidebar or the menu-bar button to turn the side-bar on and off. This is in Firefox 10.0.5. In the Firefox web console I can see the doc-theme.js script being loaded, but no errors from it.

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,943 views 27 12
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