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 Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,147 views 20 14
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