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

  • 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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Goff-Dupont
Published 6 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

66 views 2 3
Read article

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