Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to brand our extranet in SP 2013. The site collection is using the OOB "Orange" theme. When I create a subsite, the subsite uses the default SharePoint 2013 theme. I can go back and change the look to the "Orange" theme, but is there a way to change the default for the site collection and all subsites to the "Orange" theme? Or is there a checkbox I missed somewhere that will cascade the theme choice to all subsites in this site collection?

Thanks for your help!

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

Not very sure whether we can do that with UI.

Making use of event receivers we can apply the chosen theme after the site is created.

Sample code:

SPFile spColorFile = targetWeb.GetFile(targetWeb.ServerRelativeUrl + "/_catalogs/theme/15/Palette002.SPCOLOR"); 

SPTheme spTheme = SPTheme.Open("ProgrammedTheme", spColorFile);

spTheme.ApplyTo(targetWeb, true);
share|improve this answer
add comment

Your Answer

 
discard

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.