Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Setting Heading Styles on Confluence Cloud

Scott Mitchell November 21, 2017

Hi All,

I am looking to limit the options for heading colours presented to our page creators.

Is there a way to limit the colour of H1 to only #636363 for instance or in the absence of this functionality can we set the default colour for this heading to #636363.

Thank you for your help.

Regards,

Scott

2 answers

2 votes
Johannes Schneider February 16, 2022

I cant change the heading style at all. Where can I find the CSS option to change wiki-content? I have a cloud and I dream of changing the font size of all of my headings at once. 

2 votes
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 22, 2017

Hi Scott,

While I'm not aware of any option to limit the colour of the headings completely (Confluence applies custom colours directly to the HTML element), there is a way that you can change the default colour. Just put this in your footer box of the "Header and Footer" section in the settings:

{style} 
.wiki-content h1 { color: #636363 !important }
div[class^='SpaceCustomSettingsBlock_unsupportedMacros'] { display: none }
{style}

The first line changes the default colour of the h1 block, and the second line removes the ugly message that the style macro is not supported in the footer.

Of course you could also use various theming apps, especially if you are wanting to make multiple such changes, but for this one change, this should do.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events