UserCustomAction-ConfigPage adding CSS file links

I’ve had several questions in comments about how to add CSS files using the Simplest-Safest-Most-Future-Proof-Way to customize your SharePoint and SharePoint Online using UserCustomActionConfigPage

This is something I wanted to talk about from day 1 of this series - as I did cover you can add more than 1 CSS files, and specify their ranking via the Sequence number.

Because UserCustomAction doesn’t create a link for CSS references, the way to do this is via the ScriptBlock and create a LINK element and attach it on page creation.

How to use this?

Grab the latest configure-page.aspx from Github.

Reference a CSS file instead of a JS file.  The ID is optional, but will be respected if specified.

The Sequence is honoured - 1001 will follow 1000.

Result - the CSS reference is loaded into the page.

Happy branding!

Featured

Mar 15, 2016

Comment

UserCustomAction-ConfigPage adding CSS file links

Mar 15, 2016

Comment

Mar 15, 2016

Comment

Mar 10, 2016

4 Comments

SP2013/2016 Responsive-UI and UserCustomActionsConfigPage

Mar 10, 2016

4 Comments

Mar 10, 2016

4 Comments

Jan 24, 2016

Comment

Publishing UserCustomActionConfigPage on GitHub

Jan 24, 2016

Comment

Jan 24, 2016

Comment

Dec 23, 2015

24 Comments

The easiest way to add Script and Brand your SharePoint and SharePoint Online

Dec 23, 2015

24 Comments

Dec 23, 2015

24 Comments

Discussions