You are here:
Create a Code Resource
To add styles or functionality to CloudPages content, such as custom CSS or JavaScript, create a code resource. After you create and publish the code resource, work with a Marketing Cloud Engagement developer to apply it to content using AMPscript.
A code resource can support CSS, JSON, JavaScript, RSS, XML, or text.
- Open or create a CloudPages folder, and create a code resource.
- Enter a name and an optional description.
- If the private domains feature is enabled, define the URL settings.
- Select a resource type.
- Paste your code into the field.
- To customize the code, use the personalization and merge fields in the toolbar.
- Save your work.
- To make the code resource available in CloudPages, publish it.

