Setting Heading Styles on Confluence Cloud

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

1 answer

This widget could not be displayed.
Stephen Deutsch Community Champion Nov 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
Community showcase
Posted Monday 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...

360 views 2 5
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