I want to reference a custom CSS file inside my seattle.html file.
currently I find the following in the default seattle.html master page:
<link href="http://sharepointdev:12341/sites/mirror3/_layouts/15/1033/styles/corev15.css" type="text/css" rel="stylesheet" />
<link href="http://sharepointdev:12341/sites/mirror3/_layouts/15/1033/styles/searchv15.css" type="text/css" rel="stylesheet" />
so I simply added a reference to my custom css as follow, after the above links:
<link href="http://sharepointdev:12341/sites/mirror3/Style Library/Custom CSS/MyCustomeCss.css" type="text/css" rel="stylesheet" />
but this did not work, so I have these questions:
- By default
seattle.htmlcontains a direct reference to the server name and port, as follow<link href="http://sharepointdev:12341/sites/mirror3/_layouts/15/1033/styles. /corev15.css"so now let say I backup, then restore the site collection to a new server will the references break ? - When I added the following
<link href="http://sharepointdev:12341/sites/mirror3/Style Library/Custom CSS/MyCustomeCss.css" type="text/css" rel="stylesheet" />to reference my custom css, this changes were not reflected inside theseattle.masterpage ? - The custom CSS did not apply to my current styles, while if I directly write the following to the s
eattle.masterit will work<SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/Custom CSS/MyCustomeCss.css %>" After="corev4.css" runat="server"/>


