Remove "New" button at the top of a page

Ror 0 Reputation points
2024-09-03T11:06:13.3666667+00:00

Is it possible to remove the "New" button on the left on 1 or 2 specific site pages?

We have a workflow attached to news items, however people are often confused with whether they should select "News item" or "Page" from this menu, so we'd rather hide it altogether and create a custom CTA on the page.

User's image

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 51,846 Reputation points Microsoft External Staff
    2024-09-04T03:08:36.29+00:00

    The possible OOTB way to remove New button on the home page is to control permissions for users in the site collection.

    Go to Site permissions -> Advanced permissions settings -> Grant users with Read, Contribute or Edit permission.

    After granting permissions for users, the New button will disappear on the home page.

    User's image

    As a reminder, controlling permissions for users in the site collection may affect custom Call-To-Action button on the page.

    Due to the home page of SharePoint online site collection is in new experience, as a workaround, you need to deploy the SPFx web part to inject CSS/JS code to remove New button on the home page.

    References:

    https://learn.microsoft.com/en-us/answers/questions/545423/hide-new-button-in-sp-online-list-view-in-site-pag

    https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-script-editor.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.