I am looking for a way to remove / Hide the SHARE Button from the SharePoint Modern page, It would be great if someone can help me with this? any help will be appreciated

Thank youenter image description here


There is no supported way of removing or hiding it at the moment.
You can control the behaviour of it though, more information on that here.

There is a UserVoice request for the possibility to hide it, you can vote for that feature here:


The workaround is deploy react-script-editor to your tenant so you could hide the share button for specific page by custom CSS.


OR SPFx Applications Customiser to inject custom CSS

enter image description here

  • ReferenceError: primordials is not defined at fs.js:35:5 at req_ (C:\users\tejast\Documents\GitHub\sp-dev-fx-extensions\samples\react-application-injectcss\node_modules\natives\index.js:143:24) at Object.req [as require] (C:\users\tejast\Documents\GitHub\sp-dev-fx-exten Apr 1 '20 at 7:02
  • I keep getting this reference Error... Apr 1 '20 at 7:03

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.