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

0 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

461 views 19 9
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