Advertisement
Guest User

Untitled

a guest
Aug 18th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. <script type="text/javascript">
  2. $(function(){
  3. if(!_spPageContextInfo.isSiteAdmin){ //if user is not side admin then hide the controls
  4.  
  5. // here you can hide these control using below code not directly using css in cewp
  6.  
  7. $("#globalNavBox").css({"display": "none"});
  8. $("#welcomeMenuBox").css({"display": "none"});
  9. $("#suiteBarLeft").css({"display": "none"});
  10. $("#titleAreaBox").css({"display": "none"});
  11. $("#ms-help").css({"display": "none"});
  12. $("#RibbonContainer-TabRowRight").css({"display": "none"});
  13. $(".ms-cui-tts").css({"display": "none"});
  14. $(".ms-breadcrumb-top").css({"display": "none"});
  15. $(".ms-dialogHidden").css({"display": "none"});
  16. $(".ms-cui-topBar2").css({"display": "none"});
  17. $(".ms-cui-tts").css({"display": "none"});
  18.  
  19. }
  20. });
  21. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement