Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

link tag can be use to insert CSS file #4848

Merged
merged 2 commits into from
Jun 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions guides/v2.1/frontend-dev-guide/css-topics/css-themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ To include an external CSS file, add `<css src="URL to External Source" src_type
</page>
```

The `<link/>` tag can be used to insert `CSS` file in layout XML.

```xml
<link src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css" src_type="url" rel="stylesheet" type="text/css"/>
```

{:.bs-callout .bs-callout-info}
If the system does not find the included CSS files, it searches for the same file names with a `.less` extension. This is part of the built-in preprocessing mechanism. You can find more information about it in the [CSS Preprocessing] topic.

Expand Down