Skip to main content

r:include_stylesheet

<r:include_stylesheet />

Stylesheets must be stored in the stylesheets directory.

To include a file called styles.css, use this syntax:

<r:include_stylesheet name="styles" />

Do not include the .css extension when adding file names.

You can also include multiple stylesheets by separating them with commas. For example, if you wanted to add three files named bootstrap.min.css, main.css, and ie.css, add them like so:

<r:include_stylesheet name="bootstrap.min, main, ie" />

For files in subdirectories inside your stylesheets directory, include the path like this:

<r:include_stylesheet name="path/to/stylesheet" />

If you have multiple stylesheets at different paths, include them like this:

<r:include_stylesheet name="path/to/stylesheet, example-1, dist/main" />

Attribute options

name="stylesheet-name" - The name(s) of the stylesheet(s) in the stylesheets directory, without the .css suffix.

Example

One file:

<r:include_stylesheet name="main" />

Multiple files:

<r:include_stylesheet name="skeleton, styles, custom" />

{% link_stylesheet %}

Stylesheets must be stored in the stylesheets directory.

To include a file called styles.css, use this syntax:

{% link_stylesheet name: "styles" %}

Do not include the .css extension when adding file names.

You can also include multiple stylesheets by separating them with commas. For example, if you wanted to add three files named bootstrap.min.css, main.css, and ie.css, add them like so:

{% link_stylesheet name: "bootstrap.min, main, ie" %}

For files in subdirectories inside your stylesheets directory, include the path like this:

{% link_stylesheet name: "path/to/stylesheet" %}

If you have multiple stylesheets at different paths, include them like this:

{% link_stylesheet name: "path/to/stylesheet, example-1, dist/main" %}

Attribute options

name: "stylesheet-name" - The name(s) of the stylesheet(s) in the stylesheets directory, without the .css suffix.

Example

One file:

{% link_stylesheet name: "main" %}

Multiple files:

{% link_stylesheet name: "skeleton, styles, custom" %}

Last updated on March 16, 2021.

We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information:

  • A brief description of the issue
  • A link to the page where you saw the issue
  • Screenshots that illustrate the problem - How do I take a screenshot?

Kindly email CleanSlate@mail.wvu.edu for help or use the form on the request help page.