Code Only Advanced
Add custom code to a page, used by Administrators only. Has options to add code to the <head> section and before the closing </body> tag.
Content Type Details
- ID: 490
- Name: Code Only Advanced
- Minimum user level: Administrator
- Use with page layouts: Homepage, Full Width, Page with Sidebar - in Main Body, Microsite, PPC Campaign - in Main Body
For a more basic version use the Code Only content type.
Content Type Elements Details
Name | Description | Size | Type | Required | Conditionally Shown |
---|---|---|---|---|---|
Name | The Name element | 80 Characters | Plain Text | Yes | No |
Head Code | Add code that is output in the <head> section of the current page e.g., CSS. Supports Handlebars mark up. | 20000 Characters | Plain Text | No | No |
Code | Add code, this is output where added in the body of the page. Supports Handlebars mark up. | 999999 Characters | Plain Text | No | No |
Scripts | Add custom JavaScript, this is output before the closing body tag. Supports Handlebars mark up. | 999999 Characters | Plain Text | No | No |
Notes | Internal notes and information. Not published. See TinyMCE content options. | 999999 Characters | HTML | No | No |
Example
This text is in custom code added by the Code Advanced content type to this page/section. The green text is set by custom CSS added to the Head Code element and the online alert when clicking the green text is added to the scripts element.