Forum Discussion
Custom Theme | Re-apply to sites where used
Hi,
I have an PowerShell script to apply custom theme while creating communication sites. Currently, theme get applied as required. But, as per new requirement we have changes in theme palette and updated theme doesn't getting applied by default where it has been already used. Is there any automated technique to re-apply modified theme at tenant level to all communication sites.
1 Reply
Hello pratikdarak21
with PowerShell you can overwrite an existing theme, here are the syntax: https://learn.microsoft.com/en-us/powershell/module/sharepoint-online/add-spotheme?view=sharepoint-ps?WT.mc_id=DX-MVP-5004845
If you want to update an existing theme (to modify some of its color settings, for example), use the same syntax as shown previously, but add the -Overwrite flag to the Add-SPOTheme cmdlet.
Best, Dave