Friday, 15 August 2014

Load custom css in SharePoint Master Page

Upload your css to style library.
Now open Master Page using SPD.
You see: <sharepoint:cssregistration name="Themable/corev15.css" runat="server" />
After above tag you can add below tag. Final code snippet.

<sharepoint:cssregistration name="Themable/corev15.css" runat="server" />
<sharepoint:cssregistration name="<%$SPUrl:~SiteCollection/Style Library/MyStyle.css%>" runat="server" after="corev15.css" />
view raw gistfile1.html hosted with ❤ by GitHub