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

This widget could not be displayed.
  • 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"/>

#end

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

Cheers,

Vijay

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

400 views 4 6
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