Forum Discussion
Debayo Graham
Feb 22, 2017Copper Contributor
how to apply branding to modern team site and apply said branding to another site?
Good day,
As the topic state I am tring to figure out how i can apply branding to a modern team site, and can the powershell command below be used to get apply said branding to another modern teamsite
Apply-PnPProvisioningTemplate
also can we use the extension methods provided by OfficeDevPnP.Core to do the same for a modern teamsite
web.ApplyProvisioningTemplate(template, ptai);
Thanks
5 Replies
Sort By
- paulpaschaBronze Contributor
Currently the only supported way for branding modern team sites are through custom themes. The article below describes all supported modern team site customizations (among which is Branding)
https://msdn.microsoft.com/en-us/pnp_articles/modern-experience-customizations-customize-sites
As far as I know you should be able to use Apply-PnPProvisioningTemplate or Web.ApplyProvisioningTemplate against a modern team site to apply your custom theme.
- Deleted
paulpascha does the alternate css not work in the modern look?
- paulpaschaBronze Contributor
I'm note sure. I thought I've read somewhere Alternate CSS isn't loaded for modern team sites. Can't find where I've read that though...
Edit: I've just tried setting an alternate CSS for one of my modern team sites. I can still set it (programmatically) but it is not loaded in the rendered page. I guess the control previously responsible for rendering it is not included in the modern team site pages anymore.