Hide banner on particular confluence page?

In my space, I have configured the Documentation theme to include a banner at the top of each page.

However, I do not want the banner to appear on the home page. I found some code which I have been using to hide the sidebar on the home page (see below)

<script>
  var selectors = ['#splitter-sidebar','.vsplitbar', '#splitter-button', 'header-menu-bar']; 
  AJS.$.each(selectors, function(){ 
    AJS.$(''+this).hide(); 
  });
  AJS.$('#splitter-content').css({'width':'100%', 'left':'0'});
</script>

I was hoping to modify this code to also hide the banner. However, I can not find the selector name for the banner anywhere.

Does anyone know what the selector name is?

2 answers

1 accepted

2 votes
Davin Studer Community Champion Jul 31, 2014

I believe this is what you want. Any modern browser these days has a developer tools feature. This is super hand for figuring out stuff like this. Do some googling on debugging css with developer tools.

#theme-header {
    display: none;
}

Davin Studer Community Champion Aug 03, 2014

Does this css work for you?

I just tested it and it worked! Brilliant. Thanks so much

May be you could use the html macro to add some CSS to the page and hide banner.

That is exactly my intention.This issue is that without knowing the selector /variable name for the banner, I can't tell it what to hide!

Essentially I have the code to say "hide X", but I can't figure out what X is.

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,925 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