SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to add a custom css with v4.master however do not want to edit the actual master page itself.

the idea is to load the custom css on the wiki page.

do we have any way of doing it?

share|improve this question
up vote 0 down vote accepted

In addition to Eric's post

You can use also use ScriptLink together with Custom action and inject your CSS into the ScriptLink section of masterpage - All without editing a master page (see the sample below)

        ScriptBlock="document.write('&lt;link rel=&quot;stylesheet&quot; After=&quot;Corev15.css&quot;  type=&quot;text/css&quot; href=&quot;../_layouts/14/MyCustom/Styles/BrandingWiki.css&quot;&gt;&lt;/' + 'link&gt;');" 
        Sequence="202" />
share|improve this answer

If you don't want to modify the master page, then the alternative is to go into Site Settings and click on Master Page in the look and feel section and in there add your custom css file into the Alternate CSS URL section.

share|improve this answer

If you just want to add custom CSS to a specific page, then add a Content Editor web part and point that to your CSS file.

share|improve this answer
would like to have the custom CSS for all the SharePoint pages.. – Karthikeyan Nov 27 '13 at 14:48
Hi Karthikeyan, in that case I completely agree with Eric. That's definitely the most straightforward method. But you have to turn on the publishing feature. – Danny Rausch Nov 28 '13 at 8:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.