Hide the lable edit(pencil) button

Added this in Confluence Admin / Space Admin >> Stylesheet 
 a.show-labels-editor.editor-icon {display: none !important;}
Works fine but this is hiding the edit buttton in all the pages and blog posts.
I want to hide this button in all pages except blog posts

1 answer

1 accepted

0 votes
Accepted answer
  • Add this code in a css file.For example "labelhide.css" and add this file as an attachment to a page.

a.show-labels-editor.editor-icon {display: none !important;}

  • Go to SpaceAdmin >> Page Layout

Add the below code in the layout

#if ($page.type != "blogpost")

<link href="/download/attachments/5537850/labelhide.css" rel="stylesheet" type="text/css" media="screen" title="base"/>


This will hide the edit button in all the pages except blog posts.



Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,372 views 99 8
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