Thank you for visiting my site!

Home / SharePoint 2013 Tutorials / 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 src="/SiteAssets/testjs.js" type="text/javascript"></script
      
      
    8. or

ADD YOUR COMMENT