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

Hello,

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

I already checked https://confluence.atlassian.com/display/DOC/Styling+Confluence+with+CSS
but this is per space and not site wise.

Can this be done easily for the whole site ?

Thanks a lot in advance,

Pierre

3 answers

1 accepted

This widget could not be displayed.

Assuming you've applied the Doc theme to your entire site (https://confluence.atlassian.com/display/DOC/Applying+a+Theme+to+a+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:

https://developer.atlassian.com/display/CONFDEV/Writing+a+Confluence+Theme

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

hth,

matt

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.

This widget could not be displayed.

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

1. Go to the Administration Console (http://yoursite.com/admin/console.action)

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:

ul.search-results {  
  line-height: 1.0 !important;  
}

This widget could not be displayed.

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

<style>
.theme-documentation .pagetitle {
   font-size:40px !important;
}
</style>

If you'd like to manipulate these styles using JavaScript, then refer to this: https://confluence.atlassian.com/display/CONFKB/How+to+Use+JavaScript+in+Confluence

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 Sep 17, 2018 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...

588 views 7 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