Forum Discussion
Deleted
Jan 18, 2018SharePoint Online modern site default theme
Hi all,
We now have these new site theming options in SharePoint Online (https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-theming/sharepoint-site-theming-overview)...
Jan 18, 2018
Definitively Site Scripts and Site Desings should be the answer here, but as you mentions it's not clear how to use them in a custom provisioning solution. I asked this in a PnP call last week, but the answer I got was not clear
- DeletedJan 18, 2018
Thanks for your reply.
As to my knowledge, it is not possible to apply programmatically. At least for now. Another working solution for me would be that we can control "a default site theme" to use in general in SharePoint admin center - not necessary programmatically.
- Jan 18, 2018I'm not talking about applying a theme pro-grammatically...Site Designs and Site Themes are applied based on a template ID. If you read the documentation, it's stated that it's possible to apply them automatically to Communication and Mondern Team sites...but I also asked if the same is possible with a custom template and this is what is not clear to me
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview?branch=sitedesign- DeletedJan 18, 2018
Well, yes - if you choose a template when creating it from SharePoint Home.
To my knowledge, you cannot register a site script to run whenever a modern team site is created, only on a modern team site with a template (e.g. site design) created from SharePoint Home.
I do miss a capability like the old on-prem feature stapling concept, just to trigger something when a specific type of site is created. Site Scripts is close, but no cigar yet :-/