Thank you for visiting my site!

Home / Customization with JavaScript, jQuery, HTML, CSS, SASS / Add JavaScript or Css to a page with Content Editor

Add JavaScript or Css to a page with Content Editor

  1. In SharePoint Designer add a js or css file under: Site Assets Library. (put your js code in it)
  2. Or in Browser Site Assets -> Library -> Open with Explorer.
  3. Page -> Edit -> Insert
  4. Select the Content Editor Click the Edit Web Part
  5. Appearance set Chrome Type to None Apply and Ok
  6. To add your code Click inside the box ->Edit Source
  7. 
    <script language="javascript" type="text/javascript" src="https://url/sites/asd/SiteAssets/jquery.min.js"></script>
    
    <script language="javascript" type="text/javascript" src="https://url/sites/asd/SiteAssets/jquery.SPServices.min.js"></script>
    
    <script language="javascript" type="text/javascript" src="https://url/sites/asd/SiteAssets/fileNamewithCode.js"></script>
    
    
  8. or

ADD YOUR COMMENT