There are a couple of techniques for adding a reference to a css file to a master page, but in 2013 there is a new element to use.
An example in a standard .master file looks like this:
<SharePoint:CssRegistration Name="<%$SPUrl:~Site/SiteAssets/MetroJs/MetroJs.css% >" runat="server">
If you are using the Design Manager feature and creating a master page in HTML, then you need to encode the < and >
<SharePoint:CssRegistration Name="<%$SPUrl:~Site/SiteAssets/MetroJs/MetroJs.css%>" runat="server">
No comments:
Post a Comment