none
How to disables display Site Contents? RRS feed

  • Question

  • I created new page , but the "Site Contents" display always, how to remove it?

    Thanks

    Tuesday, November 19, 2019 9:03 AM

Answers

    • Marked as answer by Steve Shuai Wednesday, November 20, 2019 4:20 AM
    Tuesday, November 19, 2019 10:15 AM
  • Click on the Web Part and from Categories choose Media and Content and From Parts Select Script Editor and click on Add. After Adding it on the page you see there would be a Script Editor Web Part click on EDIT SNIPPET and paste the above/below code in the Snippet window and click insert and save from top left and click on page and the click on Stop Editing. both are same codes i just copied from top. that should do the trick for you.

    <style>
    #sideNavBox a[href$="/_layouts/15/viewlsts.aspx"]
     {
        display: none;
     }
    </style>

    Thanks & Regards,


    sharath aluri



    Wednesday, November 20, 2019 2:09 AM
  • Hi, Steve,

    Yes, you are right. Insert the code in "Embed code".

    Test Result:

    Best Regards,

    Michael Han


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    • Marked as answer by Steve Shuai Wednesday, November 20, 2019 4:19 AM
    Wednesday, November 20, 2019 3:29 AM

All replies

    • Marked as answer by Steve Shuai Wednesday, November 20, 2019 4:20 AM
    Tuesday, November 19, 2019 10:15 AM
  • Tina:

            how to insert the code? Embed? 

    <style>

    #sideNavBox a[href$="/_layouts/15/viewlsts.aspx"]
     {
        displaynone;
     }
    </style>

           



    • Edited by Steve Shuai Wednesday, November 20, 2019 12:53 AM
    Wednesday, November 20, 2019 12:50 AM
  • Click on the Web Part and from Categories choose Media and Content and From Parts Select Script Editor and click on Add. After Adding it on the page you see there would be a Script Editor Web Part click on EDIT SNIPPET and paste the above/below code in the Snippet window and click insert and save from top left and click on page and the click on Stop Editing. both are same codes i just copied from top. that should do the trick for you.

    <style>
    #sideNavBox a[href$="/_layouts/15/viewlsts.aspx"]
     {
        display: none;
     }
    </style>

    Thanks & Regards,


    sharath aluri



    Wednesday, November 20, 2019 2:09 AM
  • Hi, Steve,

    Yes, you are right. Insert the code in "Embed code".

    Test Result:

    Best Regards,

    Michael Han


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    • Marked as answer by Steve Shuai Wednesday, November 20, 2019 4:19 AM
    Wednesday, November 20, 2019 3:29 AM
  • Thank you  sharath aluri,Michael Han , Tina
    Wednesday, November 20, 2019 4:20 AM
  • Hi Steve,

    Thanks for marking my reply as answer. I’m pleased to know that the information is helpful to you. And thanks for the helpful reply from Tina and sharath aluri.

    Here I will provide a brief summary of this post for your information.

    Issue Symptom:

    =======================================

    Remove the link "Site Contents" in a page

    Solution

    =======================================

    Insert the following code in "Embed" code:

    <style>
    #sideNavBox a[href$="/_layouts/15/viewlsts.aspx"]
     {
        display: none;
     }
    </style>

    Best Regards,

    Michael Han


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Tuesday, November 26, 2019 9:42 AM
  • Thanks again.
    Thursday, December 5, 2019 2:34 AM