Apply CSS to Confluence administration

Rosario De Domenico
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.
June 15, 2016

I managed to get rid of the create page button in the dashboard with the following CSS: 

.dashboard #create-page-button { display:none; }

Now I am trying to do the same from the Confluence administration pages.

I have tried the following but it does not work. Any idea how else to identify the administration pages?

 

.admin-body #create-page-button { display:none; }

 

Thanks for assistance.

 

1 answer

1 accepted

0 votes
Answer accepted
Davin Studer
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.
June 16, 2016

The global stylesheet is not applied to pages under Confluence Admin. You must put it in custom html inside style elements.

Rosario De Domenico
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.
June 16, 2016

Could be that I am doing something wrong, but it does not seem to work.

I went to the "Custom HTML" section in the "Confluence administration" page and inserted the following code in the "At the end of the HEAD" field: 

<style type="text/css">
.admin-body #create-page-button {
     display:none;
}
</style>

But when I view the source of the page (after reload of course) the element is not present (and not applied).

Have I misunderstood your suggestion? 

 

Davin Studer
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.
June 17, 2016

No, that should work. Give "at the end of body" a try too? That is where I have some styles (for something else) for Confluence Admin and it works just fine.

Rosario De Domenico
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.
June 19, 2016

Even if I do not understand the difference... putting it at the end of body works just fine.

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events