Hide the lable edit(pencil) button

Vijay Krishna B
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.
September 12, 2013
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
Answer accepted
Vijay Krishna B
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.
October 24, 2013
  • 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
TAGS
AUG Leaders

Atlassian Community Events