SOLVED

Can I use Office UI Fabric on classic wiki pages?

Highlighted
Regular Contributor

Hi,
our intranet is still based on classic not modern but I was wondering how much of the modern design elements, such as Office UI Fabric or Bootstrap, HTML5 etc. I can use to create a nice looking classic wiki page. Basically, I would like it to resemble a modern communication site to an extend. Can this all be done with the HTML editor that is part of a classic wiki site?

 

Thanks for your reply.

3 Replies
Highlighted
Best Response confirmed by Florian Hein (Regular Contributor)
Solution
Hi Florian,
Yep, you should be able to use also Office UI Fabric and/or bootstrap in classic sites
Highlighted

@Juan Carlos González Martín Thanks for confirming. I will now dive more into it.

Highlighted

@Juan Carlos González Martín@gflory... We use Fabric UI on some of our Classic pages, but there's a trick to be aware of: Microsoft has some JS which runs on classic pages which hunts down and removes link elements in the document with an href containing "fabric.min.css". This code is presently found in https://spoprod-a.akamaihd.net/files/sp-client/sp-classic-page-assembly_en-us_8b406f9bcb2f34f60515e9.... It's in a function called "removeFabricLinks". Thus, to load the Fabric UI CSS, you must not call it "fabric.min.css" in your link tag. We simply renamed the CSS file and load it from our own source.