SHARE
TWEET

Untitled

a guest Aug 18th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top