SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using several document library web parts and I want to hide the "Add new document" link on those web parts. How can this be done?

share|improve this question
would it work to remove the add permissions to the document library? – Ryan Erickson Apr 1 '13 at 21:51
up vote 1 down vote accepted

Add the following style in your CSS file or in your Master page (between style tags),

<style type="text/css">

  display: none !important;

#MSOZoneCell_WebPartWPQ2 .ms-addnew  /* for a particular web part */
  display: none !important;
share|improve this answer
C. Marius's answer is the correct one, the UI gives you these tools, no need to use CSS for this, as it would affect every web part everywhere that this CSS is attached to which might not be desired. With it being in the master page, you've just disabled this functionality within the entire site/site collection. – Eric Alexander Apr 1 '13 at 23:39

...or alternativelly, use the "Edit web part" and choose the option to "No Toolbar" (by default it is "Summary Toolbar" - which translates in showing the "Add new item" button for people with appropriate permissions mask)!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.