1

i would like to add a bootstrap html webpage to SharePoint online. like the one below.

https://codepen.io/anon/pen/oeaBdw

it has links to bootstrap css and js files is it possible to copy and past it directly to the script editor.

for some reason it is not working for me.

2
  • Look this article, how is this working: <br>Bootstrap and SharePoint Online Commented Aug 28, 2017 at 12:42
  • wow looks really complicated ! Commented Aug 28, 2017 at 12:52

2 Answers 2

3

Easier way to do this is create an HTML file with references to JS and CSS (as you already have). Add a Content Editor Webpart(CEWP) on the page where you want to display the HTML. Edit the CEWP and set the Content Link field with URL to the HTML page you created.

0

In addition of Akshay's Answer. Convert your .html file to a .txt. Save it and all the referenced CSS and JS files into a document library (I would prefer Sites Assets library).

rest as Akshay said, give the file path of the .txt file in CEWP.

(I don't know why but when I give link of an HTML file in CEWP, it take a bit more time then .txt)

And I would suggest, instead of putting all the content with in the HTML file, fetch the data from a list by CAML query.

2
  • While using the bootstrap the some of the elements such as fonts and headings in the ribbon etc changed. is there anything i have to do to make them the way it is Commented Aug 30, 2017 at 4:30
  • Try with !important Commented Aug 30, 2017 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.