Forum Discussion
Custom Sites web part
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.
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.
- vish3027Aug 21, 2020Copper Contributor
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
- ganeshsanapAug 21, 2020MVP
vish3027 Check below references:
- Inject Custom CSS on SharePoint Modern Pages using SPFx Extensions
- 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.
- Eva VogelAug 21, 2020Iron Contributor
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