Style .NET Core widgets and pages


To apply styles to the widgets and the page itself, the styles must be referenced in the template of the page.


To style your widgets, perform the following:

  1. Create a Layout file.
    For more information, see Sitefinity CMS GitHub sample Starter template » _Layout.cshtml
  2.  Allow the use of static files.
    To do this, in the Startup.cs, insert the following:
  3. Place your styles and scripts in the wwwroot folder.
  4. Reference the styles and scripts in the template.
    For more information about how to do this, see the _Layout.cshtml, mentioned above.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?

Next article

.NET Core demo page