It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Style Macro in New Confluence

We used the following macros in our confluence site to strip out information for home navigation pages. They are now not working since our site has been upgraded to the new look. Any idea of how to get them working now?

 


.page-metadata {display:none;}
#comments-section { display:none; }
#likes-and-labels-container { display:none; }
#main-header { display:none; }
#create-page-button { display:none; }
#footer { display:none; }
#quick-create-page-button { display:none; }

2 answers

Hi Patrick,

In the old interface of Confluence, the page was rendered as one contiguous HTML document, so it was possible to use the style macro to affect other parts of the page.

Now that Confluence has been upgraded to the new interface, the page content is rendered as a separate iframe within the larger page. Therefore any style macro within the content will only affect the contents of the content window.

This is unlikely to change, so some sort of solution using the new theming functionality of Atlassian Connect apps will somehow have to fill the gap.

0 votes

Hi Patrick,

Can you let us know where exactly on Confluence you put this CSS? Is it in a Confluence page, or is it on the overview page of a space?

Thank you!

Kind Regards,
Shannon

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

300 views 0 12
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