I'm on SPO and I'm looking to hide the s4-ribbonrow element for the EditForm.aspx which opens as a modal dialog popup window on a wiki page (not modern)

I found several possible solutions for jQuery or CSS but they all don't seem to work in SPO.

Is there still a way to hide the ribbon or disable controls for that?

Thanks for your help.

1 Answer 1


You can edit newform.aspx page and add content editor webpart and below css code to it.

display:none !important;}

Note : this will hide ribbon and you will not able to save page. To save in browser developer tool remove that css and then click save. It will work.

  • Thanks, I wasn't sure how to add a content editor webpart to EditForm.aspx. I found a way which is to put the snippet into <SharePoint:StyleBlock runat="server">. Do you know if there's a solution without havng to edit the .aspx? I would have to change this on hundreds of site collections. Aug 23, 2018 at 11:52
  • 1
    May be You can use powershell to automate this. Aug 23, 2018 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.