Quantcast
Channel: SharePoint Diary
Viewing all articles
Browse latest Browse all 1058

Apply Theme in SharePoint 2013 using PowerShell

$
0
0
Themes are the quick and easiest way to apply branding to SharePoint sites. In SharePoint 2013 Themes got changed and redesigned as "Composed Look" feature. As it sounds "Composed" look, it simply defines theming by combining design elements: Master page - AKA site layout, Color theme, Font schemes and background images. Read more: http://www.sharepointdiary.com/2014/12/sharepoint-2013-composed-looks-feature.html

Apply composed look programmatically in SharePoint 2013  
If you want to uniformly apply the composed look which comprises of Master Page, Image file, Font schema to all sites, you can utilize PowerShell.
Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue

#Variables for processing
$WebURL="http://portal.crescent.com/"
$ColorPaletteURL="/_catalogs/theme/15/Palette015.spcolor"
$FontSchemeURL="/_catalogs/theme/15/fontscheme005.spfont"
$BackgroundImgURL="/_catalogs/theme/15/Tulips.jpg"

#Get the Web
$web = Get-SPWeb $WebURL

#Apply theme
$web.ApplyTheme($ColorPaletteURL, $FontSchemeURL, $BackgroundImgURL, $true)
$web.Update()
This applies the theme for given web.

Viewing all articles
Browse latest Browse all 1058


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>