Style Macro in New Confluence

Patrick Thompson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 24, 2017

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

1 vote
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.
August 25, 2017

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
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 25, 2017

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
TAGS
AUG Leaders

Atlassian Community Events