how to apply branding to modern team site and apply said branding to another site?

Brass Contributor

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

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.

 

 

@Paul Pascha does the alternate css not work in the modern look?

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.

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