Custom widgets allow you to expand the functionality of available content in your homepages to suit your specific organizational and course needs. You can add custom HTML code to create a wide range of widgets. You can create custom widgets for your courses, or use custom widgets shared to your course offerings from the organization, department, or semester level.
![This is the paper note and pencil icon used for notes.](https://us.v-cdn.net/6036482/uploads/SHE48CBHTQE1/print-notes.png)
|
Note: Your administrator may have chosen to implement an additional safeguard on custom widgets called ‘sandboxing’. When a custom widget is sandboxed, a secure iFrame is created around the widget and prevents scripts from executing outside the widget. You can view if a widget is sandboxed or not on the list of custom widgets. Un-sandboxed widgets are not unsecured per se, but should only be created by trusted roles. |
In the widgets list, un-sandboxed widgets have a warning icon:
![The float-over text on the icon indicates that the widget is not sandboxed](https://us.v-cdn.net/6036482/uploads/D6C04FUFC2G6/f15882-xss-widgetlist-notsandboxed.png)
To create a custom widget
- On your course homepage, click Course Admin > Widgets.
- Click Create Widget.
![The Create Widget option.](https://us.v-cdn.net/6036482/uploads/9HCJ23KNPW7W/widgets-create-widget-option.png)
- From the Properties tab, enter a name and description for the widget.
![The Properties tab showing the Name and Description fields for a new widget.](https://us.v-cdn.net/6036482/uploads/4H2GU70JEBR9/widgets-new-widget-create.png)
- To add your own HTML content to the widget using the HTML Source Editor, click the Content tab >
HTML Source Editor icon. Add your HTML custom code.
![The Source Code option in the Content tab.](https://us.v-cdn.net/6036482/uploads/ZW5S1W2S1F9M/widgets-source-code-option.png)
- To apply different styling options to the widget, click Customize Widget Style.
![The Customize Widget Style option.](https://us.v-cdn.net/6036482/uploads/XKAOIZX7UKSA/widgets-customize-widget-style-option.png)
- In Widget Settings, do any of the following:
- To hide the titlebar, clear the Display Titlebar check box.
- To enable sandboxing of widget content, click to select Widget is Sandboxed and/or Render in iFrame.
![This is the paper note and pencil icon used for notes.](https://us.v-cdn.net/6036482/uploads/SHE48CBHTQE1/print-notes.png) | Note: If your role does not have permission to toggle this setting, but you feel your widget needs to be unsandboxed to behave as expected, please contact an administrator with the Widget Security permission. |
- To remove the default border style, clear the Display widget container style check box.
- Select Prohibit minimizing widget to prevent users from closing the widget on the homepage.
![The Widget Settings dialog.](https://us.v-cdn.net/6036482/uploads/TJZILZVK5BQX/widgets-widget-settings-dialog.png)
- To set a custom title, in the Widget Name section, select the Custom radio button. Enter your text in the field.
- Click Save. To attach release conditions to the widget, click the Release Conditions tab and do one of the following:
- Click Attach Existing then select from existing release conditions available to the org unit. Click Save. From the dropdown list, select All conditions must be met or Any condition must be met.
- Click Create and Attach to create a release condition and attach it. Click Create. From the drop-down list, select All conditions must be met or Any condition must be met.
- Click Save and Close.
![The Release Conditions tab showing the Attach Existing and Create and Attach options](https://us.v-cdn.net/6036482/uploads/2I7OLMQD1BJO/widgets-release-conditions-tab.png)