is there a way to hide edit page button and replace it with another icon link to say unable to edit until page is approved? idea is to remove the edit button so users cannot edit until the page has been approved or rejected.

i was looking at spfx extensions however i was not able to find anything related to pages.

enter image description here

1 Answer 1


you could deploy the SPFX: react-application-injectcss

Then inject a custom Cascading Style Sheet (CSS) on modern pages to hide the Edit button.

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.