Hide “Updated pages” in Office 365 wiki

The code to hide “Updated Pages” part on wiki libraries has changed somewhat from older versions of SharePoint.

The code now is:

<style type="text/css">
   .ms-quicklaunchouter{
          display: none;
   }
 </style>

Simply add a “Content Editor webpart” on your page. Go the html source and add the following script.
The script just hides the block via CSS.

About: Marijn

Marijn Somers (MVP) has over 12 years experience in the SharePoint world, starting out with SP2007. Over the years the focus has grown to Office 365, with a focus on collaboration and document management. He is a business consultant at Balestra and Principal Content Provider for "Mijn 365 Coach" that offers dutch employee video training. His main work tracks are around user adoption, training and coaching and governance. He is also not afraid to dig deeper in the technicalities with PowerShell, adaptive cards or custom formatting in lists and libraries. You can listen to him on the biweekly "Office 365 Distilled" podcast.


10 thoughts on “Hide “Updated pages” in Office 365 wiki”

  1. Actually, it worked well with Content Editor, it’s just a little trickier:
    1. Add the Content Editor webpart
    2. Edit the webpart
    3. You’ll see a “Click here to add new content” link within the webpart, place your cursor inside the box as if you were going to type there, BUT…
    4. In the “Format Text” tab, select “Edit Source” in the Markup section
    5. Paste the above code into the blank page and hit OK
    6. Before you close, in the webpart editing menu (on the right side), under Appearance > Chrome Type, select None.

    Thanks for the code, Marijn! Only thing I would still like to see is how to remove the gray line that is now residing above my Quick Launch (which used to separate the Updated Pages list from the QL).

    1. Found it — and to avoid all the steps I mentioned above, do use a Script Editor 🙂

      .ms-quicklaunchouter{ display: none; }
      .ms-core-listMenu-separatorLine { display: none; }

  2. dang it… can’t edit replies… add the “style” lines as mentioned in Marijn’s original code. Sorry for the mess.

  3. Hello.
    It woks for me until I clicked the saved button. After that the menu reappears, and if I open the source, the only iinstructions left are .

  4. This doesn’t work for me (Office 365; 2017-07-26); the method described at https://stackoverflow.com/questions/21905139/sharepoint-2013-deleting-contents-of-style-in-embed-code-when-saving works;

    1. Edit the page.
    2. Insert > Media and Content > Script Editor
    3. Edit Web Part
    4. Edit Snippet.
    5. paste

    .ms-quicklaunchouter{display:none;}
    .ms-core-listMenu-separatorLine{display:none;}

    6. Save.

    Refer to https://support.office.com/en-gb/article/Allow-or-prevent-custom-script-1f2c515f-5d7e-448a-9fd7-835da935584f?ui=en-US&rs=en-GB&ad=GB for changes since July 2017 on embedding script.

Leave a Reply

%d bloggers like this: