---
title: "How to hide the \"Edit\" or \"Edit Contents\" button"
canonical: "https://support.appfire.com/space/SCAFS/477600215/How%20to%20hide%20the%20%22Edit%22%20or%20%22Edit%20Contents%22%20button"
format: markdown
---
> Macro (aura-html)

## Answer

You can use a combination of the [Visibility app](https://marketplace.atlassian.com/apps/202/visibility-for-confluence?hosting=server&tab=overview&__hstc=72543820.4e76311f874131a99198a462418b615c.1678085111437.1679653767289.1679663061619.72&__hssc=72543820.40.1679663061619&__hsfp=3075603085) with the Style macro to show the button only to space administrators.  


- To hide the *Edit *button:

![image](media://16e3886b-709f-4e95-bb8b-86dfd57a0463)

- To hide* the Edit Contents* button:

![image](media://88967f88-662b-400f-a775-5438407baf40)

> ℹ️ Since we introduced the in-page editor, the ID of the *Edit Contents* button has been changed from `editScaffoldLink` to `edit-scaffold-link`.

> ℹ️ You can also enable the [HTML Macro](https://confluence.atlassian.com/doc/html-macro-38273085.html?__hstc=72543820.4e76311f874131a99198a462418b615c.1678085111437.1679653767289.1679663061619.72&__hssc=72543820.40.1679663061619&__hsfp=3075603085), however, be aware that enabling these macros can make your Confluence site vulnerable to cross-site scripting attacks.