How To Set The Color Palette And Background Image On A Modern SharePoint Site Using PNP PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-219783%22%20slang%3D%22en-US%22%3EHow%20To%20Set%20The%20Color%20Palette%20And%20Background%20Image%20On%20A%20Modern%20SharePoint%20Site%20Using%20PNP%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219783%22%20slang%3D%22en-US%22%3E%3CP%3EUsing%20most%20of%20the%20scripts%20for%20deployment%20from%20sp-starter-kit%20for%20one%20new%20project%20on%20SharePoint%20Online.%3C%2FP%3E%3CP%3EI%20am%20stuck%20at%20the%20following%3A%20If%20I%20use%20the%20code%20to%20set%20the%20theme%20from%20here%20-%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-starter-kit%2Fblob%2Fmaster%2Fprovisioning%2Ffunctions.ps1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-starter-kit%2Fblob%2Fmaster%2Fprovisioning%2Ffunctions.ps1%3C%2FA%3E%3C%2FP%3E%3CP%3EI%20am%20not%20able%20to%20set%20the%20backgroundimage.%3C%2FP%3E%3CP%3EIf%20I%20use%20the%20CSOM%20web.ApplyTheme%20method%20-%20the%20spcolor%20is%20not%20doing%20the%20same%20as%20the%20powershell%20script.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Using most of the scripts for deployment from sp-starter-kit for one new project on SharePoint Online.

I am stuck at the following: If I use the code to set the theme from here -

https://github.com/SharePoint/sp-starter-kit/blob/master/provisioning/functions.ps1

I am not able to set the backgroundimage.

If I use the CSOM web.ApplyTheme method - the spcolor is not doing the same as the powershell script.

 

 

 

 

 
0 Replies