1

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.

2

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

<style>
#s4-ribbonrow{
display:none !important;}
</style>

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.

2
  • 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. – colonel_claypoo Aug 23 '18 at 11:52
  • 1
    May be You can use powershell to automate this. – Bhaskar Dhone Aug 23 '18 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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