Hide Check Out in SharePoint 2013
Published in
1 min readJul 14, 2015
If you want to hide the “Check Out” functionality in SharePoint 2013, this can be achieved using CSS and JavaScript.
SharePoint 2013 offers two different Menus for checking out documents in a SharePoint libary:
- Edit Control Block (ECB) menu
- menue item in the Ribbon Bar
The first one can be hidden using the following JavaScipt:
<script language="javascript">
function AddCheckinCheckoutMenuItem(m, ctx, url)
{return;}
</script>
Taken from How to disable check in/check out in a document library?
The second menu item can be hidden by the following CSS:
<style>
// Hide Ribbon Bar Check Out
#Ribbon\.Documents\.EditCheckout-LargeMedium-1-0{
display:none;
}
</style>
You can combine both scripts in one text file, save them to a SharePoint library (e.g. in Site Assets) and integrate them on your page using a CEWP (Content Editor Web Part).