This post is about hiding the buttons in the ribbon panel of ur Sharepoint portal(2010)...
Lets say, Ur boss wants u to hide the "Upload" button in the ribbon panel , but for a single Library..
Single Library ..... hmmmmmm.. ok lets check it out...
Googling starts --> U refer this article from MSDN , but this will lead to hide the button for the whole site by activating a feature..
What can u do?????
Ok let us try something in Javascript .. open the document library page, add a content editor webpart to ur page.. add this Javascript to the webpart..
<style type="text/css">
#Ribbon\.Documents\.New\.AddDocument-Large
{
display: none !important;
}
</style>
Save the changes...
ABRACADABRA..... Upload button is Gone....
Work is done within 2 mins... Enjoy ..... Have a great day:):):)
No comments:
Post a Comment