Quantcast
Channel: SharePoint 2013 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 26374

Hide Ribbon - Sharepoint 2013

$
0
0

 I have added the following to hide the ribbon for users that dont have full control.

It works to hide the ribbon for users that don't have full control, but on the users it removes it from it removes half of the viewing space on the page.

When I remove the SPSecurityTrimmedControl it goes back to normal. 

Could someone assist with troubleshooting this. Any help is appreciated. 

<div id="ms-designer-ribbon" ><!--MS:<SharePoint:SPSecurityTrimmedControl runat="server" PermissionsString="ManageWeb" EmitDiv="true">--><!--SID:02 {Ribbon}--><!--PS: Start of READ-ONLY PREVIEW (do not modify) --><div class="DefaultContentBlock" style="background:rgb(0, 114, 198); color:white; width:100%; padding:8px; height:64px; overflow:hidden;">In true previews of your site, the SharePoint ribbon will be here.</div><!--PE: End of READ-ONLY PREVIEW --><!--ME:</SharePoint:SPSecurityTrimmedControl>--></div>



Viewing all articles
Browse latest Browse all 26374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>