Is it possible to apply a snippet of CSS to the SharePoint Site Contents page of a SharePoint site?

I would like to tweak it slightly with some styling.


1 Answer 1


Yes, you can add custom CSS or JS to modern pages using SPFx Application customizer.

For more information, check my answer at: What is the best practice for getting JS and CSS files into a SharePoint Modern Page?

Note: DOM manipulation & CSS customizations are not recommended by Microsoft and some of your customization may break if Microsoft changes HTML element id/classes in new release updates.

  • hi, i tried this, i can even see the script in DEV TOOLS in SiteContent page, but it just not running is there something else or new that needs to be done? Commented Nov 17, 2022 at 13:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.