Pages

05 June, 2012

SharePoint 2010: Hide Recently Modified

Hi again, after a long wait. Saddly last month couldn't free some time to write a bit. Nevertheless I'm back and with some new tips that will post in the following days.

So the first one is to show, how can you hide the Recently Modified box from the Quick Launch area, in a Wiki Page Library.

Create a new site with a Wiki Page Library
You should get something like this
As you can see there is a, sometimes, annoying Recently Modified box in the Quick Launch.

So check how to hide it in 2 easy steps.


1. Edit Master page in Sharepoint Designer
Ok open your site, go to Master Pages and edit the file V4.master in Code view
2. Paste the following in code between Head tag
Ok now paste this code anywhere between the tag Head and save the changes
 <style type="text/css">
 .s4-recentchanges
 {
  display:none;
 }
 </style>

3. YAY!!! Refresh your site and its done.
If you want to keep in touch, feel free to Subscribe to How I did it - Sharepoint Foundation 2010

11 comments:

  1. Bless you for posting this easy fix! Thanks that was very annyoing!!

    ReplyDelete
  2. Awesome tip..

    ReplyDelete
  3. Great tip, take my first born as payment.

    ReplyDelete
  4. awesome !!!

    ReplyDelete
  5. Worked Perfectly! Thanks.

    ReplyDelete
  6. You just saved my day Pedro :-)

    Jørgen
    (Norway)

    ReplyDelete
  7. Any way to do this without having access to Sharepoint Designer?

    ReplyDelete
    Replies
    1. Yes its possible to do it without SharePoint Designer. Just follow the steps.

      1. Go to Site Settings > Master Pages
      2. Check the v4.master file and download a copy to your desktop
      3. Edit the copy with notepad or other text editor
      4. Add the css code between the head tag and save the file.
      5. Go back to your Master Pages and upload the new document, overwriting the older one.

      That should do it. If you have any trouble give a shout.

      Delete
    2. And if your rights are so limited, that you don't have access to the master pages, try a Content Editor Web Part in your page, which is link to a text file with this short Javascript code:
      (Please with opening and ending script tags, which I'm not able to write here)


      d = document.getElementsByTagName('div');
      j=0;
      var cl = new Array()
      for(i=0;i<d.length;i++){
      if(d[i].className == 'ms-quickLaunch s4-ql s4-recentchanges'){
      cl[j] = d[i];
      j++
      }
      }
      cl[0].setAttribute('style', 'display:none');


      BR

      Delete