Sharepoint deleted recycled bin from navegation bar

jhcr2 0 Reputation points
2024-07-17T10:17:12.2766667+00:00

Hello,

I want to remove the recycle bin from appearing in the navigation bar of my sharepoint.

There is a way to do it which is by activating the SharePoint Server Publishing Infrastructure option, but when I activate it then it doesn't let me change the structure of the navigation bar to the top.

Does anybody knows how it's done? I guess with code buti don't know how.

Thanks you

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,810 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,619 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,959 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 47,296 Reputation points Microsoft Vendor
    2024-07-18T08:43:53.7866667+00:00

    For the classic site, you could hide the recycle bin from navigation bar of a particular page with following CSS codes in the script editor web part.

    <style type="text/css">
    #sideNavBox a[title="Recycle Bin"]
    {
        display:none!important
    }
    </style>
    

    For the modern site, activating the "SharePoint Server Publishing Infrastructure" feature is the only available OOTB option. Because that's by design.

    As a workaround, you could install modern script editor web part, then use provided CSS codes in the modern script editor web part.

    https://sharepoint.handsontek.net/2023/03/15/use-script-editor-modern-sharepoint-sites/#google_vignette

    To address your concern about the situation, we’d suggest you go to vote this feedback, this is the best platform to let us hear from you and make our products and services better for you and others. The more votes, the easier it is to be seen.

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    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.