Sol Web Solutions Blog
Sol Web Solutions Blog is aimed to help, inform, educate and enable our site visitors.
CSS for Hiding Upload options in SharePoint Library ribbon
- Font size: Larger Smaller
- Hits: 104857
- 0 Comments
- Subscribe to this entry
- Bookmark
In case you need to remove the SharePoint Library ribbon option of "Upload Document" to a library:
...and have the following scenario presented to the user:
- Open the library in SharePoint designer
- Open the "All Documents" view (in our case)
- Find the ending tag for <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
- Just before </asp:Content> insert the following CSS as shown below:
</ZoneTemplate></WebPartPages:WebPartZone>
<style type="text/css">
/*
hide the New Document, Upload Document, New Folder on left side of ribbon, have to use the back slashes to escape the dots in the element ID
*/
#Ribbon\.Documents\.New {display:none;}
</style>
</asp:Content>