1. Themes

Upload and use custom icons

Note

To configure Content Hub, you must either be a superuser or have the necessary permissions granted to you through user group policies.

If you have your own set of custom .svg icons, you can upload and use them in Sitecore Content Hub.

Note

Icon overrides are not supported on pages that are rendered in Knockout. To override icons on pages rendered in Knockout, use a custom CSS. Icon overrides are supported on pages that are rendered in React, or in Hybrid mode.

To display correctly, your .svg icon files must use only the following:

  • Compound paths - shapes like rect or circle with dimensions are not supported.

  • The color black.

  • Strokes or fills - other CSS properties are not supported.

Here's an example of a .svg icon file containing fills and a compound path with strokes:

<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M21 12C21 16.9706 16.9706 21 12 21M21 12C21 7.02944 16.9706 3 12 3M21 12H17M12 21C7.02944 21 3 16.9706 3 12M12 21V17M3 12C3 7.02944 7.02944 3 12 3M3 12H7M12 3V7M12 12H12.01" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

To upload custom icons:

  1. On the menu bar, click ManageManage icon.

  2. On the Manage page, click Portal assets.

  3. On the Portal assets page, click Upload iconUpload files.

  4. In the dialog, do one of the following:

    • Click My device, select the files you want to upload, and then click Open.

    • Click From link, paste links to the files you want to upload, and then click Import.

    • Drag the files you want to upload into the dialog.

To use your custom icons:

  1. On the menu bar, click ManageManage icon.

  2. On the Manage page, click Settings.

  3. On the Settings page, search for IconOverrides and click it.

  4. On the IconOverrides page, click Add override.

  5. Click Select icon.

  6. In the Select icon dialog, select the icon you want to replace and click Save.

  7. Click Select an asset and, in the Asset dialog, either select or manually search for the custom icon you want to use.

  8. Click Save.

  9. In the top-right corner of the IconOverrides page, click Save.

If you have suggestions for improving this article, let us know!