Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

2 Answers 2

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">

.ms-addnew
{
  display: none !important;
} 

#MSOZoneCell_WebPartWPQ2 .ms-addnew  /* for a particular web part */
{
  display: none !important;
}
</style>
share|improve this answer
2  
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. –  PirateEric 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

 
discard

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.