Feb 22 2017 08:14 AM - edited Feb 22 2017 08:25 AM
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
Feb 22 2017 10:40 AM
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.
Feb 22 2017 11:10 AM
@Paul Pascha does the alternate css not work in the modern look?
Feb 22 2017 11:21 AM - edited Feb 22 2017 11:31 AM
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.
Feb 22 2017 11:33 AM
Feb 22 2017 12:07 PM - edited Feb 22 2017 12:10 PM
Hi @Paul Pascha
Can I suggest you look at Bert Jansen's demo at the PnP-Core Sig today. It shows how to do a number of things with Modern team sites. The webcast should be here tomorrow -> https://www.youtube.com/channel/UC_mKdhw-V6CeCM7gTo_Iy7w The code is already in the dev branch of the PnP-Core repository.
Regards
Nigel