How do I apply CSS?
You apply CSS at the Template, Configuration, or Page level by linking to it in an XML Block.
Create a region in your Template
- Navigate to your Template and click Edit.
- Add a System Region tag within the
<head>tags, for example<system-region name="CUSTOM CSS"/>. - Submit your changes.
Upload your CSS
- Click Add Content and select the File asset type.
- Drag and drop or choose your CSS file, then click Submit.
Create an XML Block
- Click Add Content and select Block > XML.
- Add a link to your CSS file in the code editor and click Submit:
HTML
<link href="/_cascade/css/custom.css" rel="stylesheet" type="text/css"/>
Attach your XML Block
At the Template or Page level:
- Navigate to your Template or Page and click Edit > Configure.
- Find the region you created, click Choose Block, select your XML Block, and click Choose.
- Click Submit.
Or at the Configuration level:
- Click Manage Site > Configurations, select your Configuration, and click Edit.
- Find the region you created, click Choose Block, select your XML Block, and click Choose.
- Click Submit.