How to change my heading size of my 'Documentation Theme' ? (site wize)


I would like to change the headings size and underlining for my whole confluence site.

I already checked
but this is per space and not site wise.

Can this be done easily for the whole site ?

Thanks a lot in advance,


3 answers

1 accepted

0 votes
Accepted answer

Assuming you've applied the Doc theme to your entire site (, you can do 1 of 2 things (that I can think of):

1) Use jQuery to rewrite the style setting after the page is drawn.

2) Edit the theme file and repackage it.

I think you're best bet for #2 is to read this:

Once you understand how to create your own theme, you should be pretty comfortable modifying an existing one and redeploying it across your site.



Thanks for the tip. I'll follow Amalia recommendation first. Thanks for your time.

I started changing things with jQuery and it is pretty neat.

Thanks for the advise.

Yes, you can do it site wide by editing the global style sheet.

1. Go to the Administration Console (

2. Scroll down the left side and click StyleSheet under "Look and Feel".

3. Add your CSS rule, being sure to add "!important" at the end of each line. This overrides any other space or page specific settings. For example: {  
  line-height: 1.0 !important;  

The easiest way would be to add the following CSS to the Custom HTML (at the end of the HEAD) in Confluence Admin:

.theme-documentation .pagetitle {
   font-size:40px !important;

If you'd like to manipulate these styles using JavaScript, then refer to this:

I'll try that as soon as I can tomorrow. I was a bit disapointed when I read Matthew answer and understood I would have to unpack/modify/pack the theme to make those changes.

Is the Custom HTML overwritten when we upgrade Confluence ?

Thanks a lot for your time !!!

Nope, Custom HTML won't be overwritten, provided that you do a manual upgrade (through database dump, rather than XML site backup)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,572 views 26 14
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