Frontend development

Style the widgets and pages

Overview

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

Procedure

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:
    app.UseStaticFiles();
  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?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
This Article Contains
New to Sitefinity?