Custom Sites web part

%3CLINGO-SUB%20id%3D%22lingo-sub-1600927%22%20slang%3D%22en-US%22%3ECustom%20Sites%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1600927%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20All%2C%3C%2FP%3E%3CP%3EI%20need%20some%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20out%20of%20box%20%3CSTRONG%3ESites%26nbsp%3B%3C%2FSTRONG%3Eweb%20part%20in%20SharePoint%20Online%20which%20gives%20updated%20for%20sites%20from%20hub.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20create%20similar%20web%20part%20with%20little%20modification(content%20will%20be%20same%2C%20css%20changes)%20using%20Spfx.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20who%20can%20help%20me%20with%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1600927%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1602993%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20Sites%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1602993%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F707649%22%20target%3D%22_blank%22%3E%40vish3027%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20case%20just%20a%20layout%20change%20is%20enough%2C%20you%20might%20want%20to%20use%26nbsp%3B%20PnP%20Modern%20Search%20Web%20Part.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft-search%2Fpnp-modern-search%2Freleases%2Fdownload%2F3.14.2%2Fpnp-modern-search-parts.sppkg%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoft-search%2Fpnp-modern-search%2Freleases%2Fdownload%2F3.14.2%2Fpnp-modern-search-parts.sppkg%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20you%20need%20to%20do%20is%20adjust%20your%20query%20on%20Search%20Results%20Web%20Part%20and%20you%20can%20design%20you%20own%20layout%20with%20HandleBars%20template.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20search%20query%20template%20you%20can%20use%20this.%3CBR%20%2F%3Econtentclass%3ASTS_Site%20AND%20DepartmentId%3D%7B%3CHUB%20site%3D%22%22%20id%3D%22%22%3E%7D%3C%2FHUB%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3EYou%20can%20edit%20your%20display%20template%20from%20web%20part%20settings%20or%20create%20a%20HandleBars%20template%20file%20and%20link%20it%20to%20web%20part.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22SharePoint%20pnp%20search.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213613iA3353B4985919442%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22SharePoint%20pnp%20search.png%22%20alt%3D%22SharePoint%20pnp%20search.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3E%E2%80%83Template%20editor%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22SharePoint%20PnP%20search%20template%20editor.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213607i688F47F875709A0A%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22SharePoint%20PnP%20search%20template%20editor.png%22%20alt%3D%22SharePoint%20PnP%20search%20template%20editor.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1603042%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20Sites%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1603042%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F5628%22%20target%3D%22_blank%22%3E%40Matti%20Paukkonen%3C%2FA%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20create%20exact%20copy%20of%20%3CSTRONG%3ESITES%3C%2FSTRONG%3E%20web%20part%20only%20changes%20will%20be%20Header%20section%20styling%20and%20Overall%20height.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20not%20sure%20about%20how%20the%20data%2Fcontent%20coming%20into%20%3CSTRONG%3ESITES%3C%2FSTRONG%3E%20web%20part.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20refer%20your%20solution%20as%20well.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1603045%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20Sites%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1603045%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F707649%22%20target%3D%22_blank%22%3E%40vish3027%3C%2FA%3E%26nbsp%3BIf%20you%20just%20want%20to%20change%20the%20CSS%20of%20single%20web%20part%20then%20you%20can%20use%26nbsp%3B%3CSTRONG%3EModern%20Script%20Editor%3C%2FSTRONG%3E%20web%20part%20and%20add%20your%20custom%20CSS%20to%20SharePoint%20page.%3C%2FP%3E%3CP%3E%3CA%20title%3D%22Modern%20Script%20Editor%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fpnp%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Freact-script-editor%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EModern%20Script%20Editor%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlternatively%2C%20you%20can%20create%20a%20%3CSTRONG%3ESPFx%20Application%20customizer%3C%2FSTRONG%3E%20and%20apply%20your%20custom%20CSS%20to%20your%20SharePoint%20pages%2Fwebparts.%3C%2FP%3E%3CP%3E%3CA%20title%3D%22Overview%20of%20SharePoint%20Framework%20Extensions%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fextensions%2Foverview-extensions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EOverview%20of%20SharePoint%20Framework%20Extensions%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CHR%20%2F%3E%3CP%3EPlease%20click%20%3CSTRONG%3EMark%20as%20Best%20Response%3C%2FSTRONG%3E%20if%20my%20post%20helped%20you%20solve%20your%20issue.%20This%20will%20help%20others%20find%20the%20correct%20solution%20easily.%20It%20also%20closes%20the%20item.%20If%20the%20content%20was%20useful%20in%20other%20ways%2C%20please%20consider%20giving%20it%20%3CSTRONG%3ELike%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1603061%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20Sites%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1603061%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F373269%22%20target%3D%22_blank%22%3E%40ganeshsanap%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20Modern%20Script%20editor%20on%20page%20and%20currently%20i%20have%20applied%20css%20using%20that%20only.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20there%20are%20updates%20changes%20coming%20from%20Microsoft%20which%20causing%20change%20in%20name%20structure%20classes%20and%20because%20of%20which%20changes%20applied%20through%20Modern%20script%20editor%20were%20lost%2C%20In%20last%202%20weeks%20there%20are%204%20times%20i%20have%20updated%20my%20css%20structure%20because%20of%20updates.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20that%20reason%20only%20i%20am%20looking%20for%20custom%20webpart%20soultion.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EApplication%20customizer%2C%20I%20am%20currently%20trying%20this%20as%20well.%20If%20you%20have%20any%20sample%20solution%20where%20you%20applied%20css%20to%20webaprt%20with%20App%20custo.%20that%20will%20help%20me%20as%20well.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1603117%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20Sites%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1603117%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F707649%22%20target%3D%22_blank%22%3E%40vish3027%3C%2FA%3E%26nbsp%3BCheck%20below%20references%3A%3C%2FP%3E%3COL%3E%3CLI%3E%3CA%20title%3D%22Inject%20Custom%20CSS%20on%20SharePoint%20Modern%20Pages%20using%20SPFx%20Extensions%22%20href%3D%22https%3A%2F%2Ftahoeninjas.blog%2F2018%2F05%2F08%2Finject-custom-css-on-sharepoint-modern-pages-using-spfx-extensions%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EInject%20Custom%20CSS%20on%20SharePoint%20Modern%20Pages%20using%20SPFx%20Extensions%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%3CLI%3E%3CA%20title%3D%22UPDATE%3A%20Inject%20Custom%20CSS%20on%20SharePoint%20Modern%20Pages%20using%20SPFx%20Application%20Extensions%22%20href%3D%22https%3A%2F%2Ftahoeninjas.blog%2F2018%2F10%2F29%2Fupdate-inject-custom-css-on-sharepoint-modern-pages-using-spfx-application-extensions%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EUPDATE%3A%20Inject%20Custom%20CSS%20on%20SharePoint%20Modern%20Pages%20using%20SPFx%20Application%20Extensions%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%3C%2FOL%3E%3CHR%20%2F%3E%3CP%3EPlease%20click%20%3CSTRONG%3EMark%20as%20Best%20Response%3C%2FSTRONG%3E%20if%20my%20post%20helped%20you%20solve%20your%20issue.%20This%20will%20help%20others%20find%20the%20correct%20solution%20easily.%20It%20also%20closes%20the%20item.%20If%20the%20content%20was%20useful%20in%20other%20ways%2C%20please%20consider%20giving%20it%20%3CSTRONG%3ELike%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1603364%22%20slang%3D%22de-DE%22%3ERe%3A%20Custom%20Sites%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1603364%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F373269%22%20target%3D%22_blank%22%3E%40ganeshsanap%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnbelievable!%20You%20have%20to%20be%20a%20programmer%20to%20simply%20change%20the%20font-family%20of%20your%20site(s).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHonestly%2C%20I%20hope%20the%20MS%20Developpers%20extract%20the%20typescript%20stuff%20and%20the%20SPFx%20as%20a%20NORMAL%20task%20to%20change%20a%20design%20via%20ootB%20PowerShell%20Scripts.%20Like%20they%20already%20did%20with%20extracting%20the%20typescript%20API%20from%20the%20office%20script%20editor%20in%20online%20Office%20files.%20It%20works%20fine%20without%20complicated%20other%20Coding%20Stuff%2C%20but%20WITHIN%20the%20current%20%22Automate%22%20Tab.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20the%20best%2C%3C%2FP%3E%3CP%3EEva%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1624391%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20Sites%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1624391%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F153902%22%20target%3D%22_blank%22%3E%40Eva%20Vogel%3C%2FA%3E%26nbsp%3B%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F373269%22%20target%3D%22_blank%22%3E%40ganeshsanap%3C%2FA%3E%26nbsp%3B%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F5628%22%20target%3D%22_blank%22%3E%40Matti%20Paukkonen%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20you%20provide%20articles%20on%20creating%20custom%20Sites%20Web%20part%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1626433%22%20slang%3D%22de-DE%22%3ERe%3A%20Custom%20Sites%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1626433%22%20slang%3D%22de-DE%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F707649%22%20target%3D%22_blank%22%3E%40vish3027%3C%2FA%3E%2C%3C%2FP%3E%3CP%3Edid%20you%20test%20out%20this%20article%20from%20ganeshsanap%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftahoeninjas.blog%2F2018%2F10%2F29%2Fupdate-inject-custom-css-on-sharepoint-modern-pages-using-spfx-application-extensions%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftahoeninjas.blog%2F2018%2F10%2F29%2Fupdate-inject-custom-css-on-sharepoint-modern-pages-using-spfx-application-extensions%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETell%20us%2C%20if%20some%20of%20the%20tricks%20worked%20for%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGreets%2C%20Eva%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1627016%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20Sites%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1627016%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F153902%22%20target%3D%22_blank%22%3E%40Eva%20Vogel%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20this%20article%20it%20uses%20Microsoft%20classes%20and%20those%20class%20names%20are%20changing%20continuously.%20Hence%20looking%20for%20different%20workaround.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20Modern%20Script%20editor%20we%20are%20doing%20almost%20same%20thing%20applying%20custom%20css%20using%20Microsoft%20class%20names.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello All,

I need some help.

 

We have out of box Sites web part in SharePoint Online which gives updated for sites from hub.

 

I want to create similar web part with little modification(content will be same, css changes) using Spfx.

 

Anyone who can help me with this?

9 Replies

Hi @vish3027,

 

I case just a layout change is enough, you might want to use  PnP Modern Search Web Part.

https://github.com/microsoft-search/pnp-modern-search/releases/download/3.14.2/pnp-modern-search-par...

 

All you need to do is adjust your query on Search Results Web Part and you can design you own layout with HandleBars template.

 

For search query template you can use this.
contentclass:STS_Site AND DepartmentId={<Hub site id>}

 

 

You can edit your display template from web part settings or create a HandleBars template file and link it to web part.

SharePoint pnp search.png

 Template editor

SharePoint PnP search template editor.png

 

 

 

 

Hi @Matti Paukkonen  

 

I want to create exact copy of SITES web part only changes will be Header section styling and Overall height.

 

I am not sure about how the data/content coming into SITES web part.

 

I will refer your solution as well.

 

Thanks

@vish3027 If you just want to change the CSS of single web part then you can use Modern Script Editor web part and add your custom CSS to SharePoint page.

Modern Script Editor 

 

Alternatively, you can create a SPFx Application customizer and apply your custom CSS to your SharePoint pages/webparts.

Overview of SharePoint Framework Extensions 


Please click Mark as Best Response if my post helped you solve your issue. This will help others find the correct solution easily. It also closes the item. If the content was useful in other ways, please consider giving it Like.

 

Hello @ganeshsanap 

 

I have Modern Script editor on page and currently i have applied css using that only.

 

But there are updates changes coming from Microsoft which causing change in name structure classes and because of which changes applied through Modern script editor were lost, In last 2 weeks there are 4 times i have updated my css structure because of updates.

 

For that reason only i am looking for custom webpart soultion.

 

Application customizer, I am currently trying this as well. If you have any sample solution where you applied css to webaprt with App custo. that will help me as well.

 

Thank You

@vish3027 Check below references:

  1. Inject Custom CSS on SharePoint Modern Pages using SPFx Extensions 
  2. UPDATE: Inject Custom CSS on SharePoint Modern Pages using SPFx Application Extensions 

Please click Mark as Best Response if my post helped you solve your issue. This will help others find the correct solution easily. It also closes the item. If the content was useful in other ways, please consider giving it Like.

 

 

@ganeshsanap 

Unbelievable! You have to be a programmer to simply change the font-family of your site(s).

 

Honestly, I hope the MS Developpers extract the typescript stuff and the SPFx as a NORMAL task to change a design via ootB PowerShell Scripts. Like they already did with extracting the typescript API from the office script Editor in online Office files. It works fine without complicated other Coding Stuff, but WITHIN the current "Automate" Tab.

 

All the best,

Eva

Hello @Eva Vogel , @ganeshsanap , @Matti Paukkonen 

Can you provide articles on creating custom Sites Web part? 

 

Thank You

Hello @vish3027,

did you test out this article from ganeshsanap? 

https://tahoeninjas.blog/2018/10/29/update-inject-custom-css-on-sharepoint-modern-pages-using-spfx-a...

 

Tell us, if some of the tricks worked for you.

 

Greets, Eva

 

Hello @Eva Vogel ,

 

In this article it uses Microsoft classes and those class names are changing continuously. Hence looking for different workaround.

 

With Modern Script editor we are doing almost same thing applying custom css using Microsoft class names.

 

Thanks