Forum Discussion
Anonymous
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)...
Anonymous
Jan 18, 2018Thanks 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, 2018
I'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
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview?branch=sitedesign
- AnonymousJan 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 :-/