Communications Sites Custom Branding (CSS/JS)

Copper Contributor

Hello, I have some custimizations I have made to a sharepoint site using a master page with custom CSS & files. However, these changes dont appear to affect communication sites (see attached screenshots below).

 

I have been reading about the Sharepoint PnP and am having trouble running the samples in the Sharepoint PnP Github repo.

 

I am wondering though if the CSOM customization methods (Described in the Sharepoint PnP) would allow me to make the customizations carry over to the new Communications Sites or if that is not even possible? Specifically I am trying to add in my own stylesheet and JS like I have done successfully.

 

 

 

Untitled-1.jpgwith the master page.

6 Replies

Hi @adam,

Communicatiuon sites don't support branding yet. 

 

you will want to use SPFx Extensions to sort out branding, however this hasn't gone GA yet. You can try this out in developer tenants.

 

https://dev.office.com/sharepoint/docs/spfx/extensions/get-started/using-page-placeholder-with-exten...

 

See the screenshot near the end of the article.

Thanks @Pieter Veenstra for the speedy reply. I will give this a shot.

 

I guess that means I wont be able to deploy to our company's new communication site yet until it is made GA?

And by the way, avoid to touch / modify directly SPO master pages

Thanks @Juan Carlos González Martín, I guess I agree with that - 

Modifications to the master page dont have any effect on the modern pages, so yea, making modifications to the master page will make for a sloppy UX. I just wish I had known that when I started my effort to customize our site. 

 

I'm glad @Pieter Veenstra helped point me in the right direction. It sounds like SP Extensions is the right path forward for future customizations, once that feature is available to the general public. I found a decent video demoing an introduction to this process (Application Customizers) by Tony Philips

 

For now I will familiarize myself with the SPFx framework and hopefully accomplish some of what I need via a custom Webpart.

 

 

@adam 

hi 

Do you find a solution to custumize a communication site with css ?

I want to inject some css to change h1 and h2 tags

 

Thanks for your help