Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(function(){
- if(!_spPageContextInfo.isSiteAdmin){ //if user is not side admin then hide the controls
- // here you can hide these control using below code not directly using css in cewp
- $("#globalNavBox").css({"display": "none"});
- $("#welcomeMenuBox").css({"display": "none"});
- $("#suiteBarLeft").css({"display": "none"});
- $("#titleAreaBox").css({"display": "none"});
- $("#ms-help").css({"display": "none"});
- $("#RibbonContainer-TabRowRight").css({"display": "none"});
- $(".ms-cui-tts").css({"display": "none"});
- $(".ms-breadcrumb-top").css({"display": "none"});
- $(".ms-dialogHidden").css({"display": "none"});
- $(".ms-cui-topBar2").css({"display": "none"});
- $(".ms-cui-tts").css({"display": "none"});
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement