How do I edit global CSS for links in my Confluence cloud instance?

By default, links in the main content area of Confluence pages are differentiated by color alone, which is an accessibility bug. I'd like to update the CSS so that links in the main content area are underlined without having to edit each and every template and blueprint with a custom CSS macro. Surely, there must be a global CSS file that can be customized, but I can't seem to find it in my Confluence cloud instance. Please advise.

2 answers

1 accepted

1 vote
Answer accepted
Steven Behnke Community Champion Oct 17, 2016

This is literally disabled in Confluence Cloud. 

FeatureEnabled in Cloud?...

Look and feel

  • Layouts
  • Custom CSS


As Confluence uses a custom theme, it is not possible to customize the layout.

It is also not possible to style Confluence with CSS.

Custom HTML


Thanks for the quick response, Steven. Greatly appreciated. Not exactly the answer I was hoping for, but at least now I know why I couldn't find the needle in the haystack since the needle wasn't even there.

I'll submit a bug report for the accessibility problem so hopefully the default styling can get repaired by Atlassian.

Steven Behnke Community Champion Oct 17, 2016

While I cannot possibly vouch for how long this workaround may be functional, this may be of interest – 

  • There's still the Adaptavist Content Formatting Macros add-on installed in the Confluence Cloud system. This add-on provides several free macros, one of which is is called CSS Formatting macro. This macro allows you to define arbitrary CSS in a page-macro.
  • The Confluence Default Theme allows you to, in each Space Administration section, set HeaderFooter, and Sidebar content in wikiformat.

Combining these two features (ie - stick a css macro in a space footer) could allow you to define space-level CSS styling – Still not ideal but IMO this could be a comparable workaround.

There's also a global "Header, Footer, and Sidebar" section, so putting it there would probably apply it globally. Note that the syntax is like this:

<CSS code goes here>
Steven Behnke Community Champion Oct 18, 2016

Gah! There's a global header, footer, sidebar?! Awesome! Thanks Stephan! I did not know that.

This does not work as of the current date. Error message: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'css' is unknown.

A bit surprised that you can't do basic theme editing in confluence. I would love to just be able to change say font and colour for an H1 tag. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

277 views 2 10
Read article

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