How to add custom CSS code to all SharePoint 2010 pages (CustomAction)

It occurred to me that you can add a CSS link to the top of each page using the same method that I showed in this post. The only thing you change is the code in “CustomAction”. The code would be”

<CustomAction
  Location="ScriptLink"
  ScriptBlock="document.write('<link rel="stylesheet" type="text/css" href="/Relative/PathTo/file.css"></link>');"
  Sequence="XX" />

Comments are closed.

Powered by WordPress. Designed by WooThemes