Hide Recently modified items in SharePoint 2010 wiki

What are you talking about ?
In SharePoint 2010, when you are working with a wiki or Site Pages library, a new menu appears on the quick launch navigation telling you which documents were recently modified. That is great to know, but if you are using the library for publishing purposes, your end-users don’t need to know that.

So how does this work ?
Simply add a Content Editor webpart on your page. Go the html source and add the following script.
Alternatively, you can also do this by changing the html of the publishing page.
The script just hides the block via CSS.

The script

<style type="text/css> 

.s4-recentchanges     { 

        display:none; 

    } 

</style>

About: Marijn

Marijn Somers (MVP) has over 14 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.


8 thoughts on “Hide Recently modified items in SharePoint 2010 wiki”

  1. This only works if modifying the master page. It cannot be added to any page using the standard content editor web part.

  2. Clem, ofcourse you can add CSS code in a CEWP!

    You don't need to modify the masterpage.

  3. Perhaps Clem is right. The underlying code seems to be modified by SharePoint when the page is saved. I found that if put your style in an external file stored in the Style Library and reference the link using the web part instead it works just fine. Also, I applied my style to #s4-leftPanel; perhaps is depends on the page layout your using.

    Styles in my css:
    #s4-leftpanel{display:none;}
    .s4-cs {margin-left:0px}

    Hope that helps.

  4. Marijn's original suggestion of Content Editor webpart worked fine for me for a single page.

    1. Hildebrand,

      I am not sure why, but I could not get your CSS to work. Instead, I referenced the following CSS, which I stored in /SiteAssets/stylesheets, in my masterpage:

      .s4-recentchanges
      {
      display:none;
      }

      It worked great. Thank you for this thread, everyone. It helped me immensely.

Leave a Reply

Your email address will not be published. Required fields are marked *