SHARE
TWEET

Untitled

a guest Aug 18th, 2018 68 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"}); //if you have jquery loaded
  8.  
  9.     // if you dont want to use jquery then use below code to apply css to your div element
  10.  
  11. document.getElementById("#welcomeMenuBox").style.display = 'none';
  12. document.getElementById("#globalNavBox").style.display = 'none';
  13. document.getElementById("#suiteBarLeft").style.display = 'none';
  14. document.getElementById("#titleAreaBox").style.display = 'none';
  15. document.getElementById("#ms-help").style.display = 'none';
  16. document.getElementById("#RibbonContainer-TabRowRight").style.display = 'none';
  17. document.getElementById(".ms-cui-tts").style.display = 'none';
  18. document.getElementById(".ms-breadcrumb-top").style.display = 'none';
  19. document.getElementById(".ms-dialogHidden").style.display = 'none';
  20. document.getElementById(".ms-cui-topBar2").style.display = 'none';
  21. document.getElementById(".ms-cui-tts").style.display = 'none';
  22.  
  23.                 }
  24.             });
  25.         </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