The following site and page elements can be configured with custom HTML and CSS.
- Site header
- Site footer
- Text and row cards
- Menu links
A site's pages and content views adopt the site's header and footer configuration.
Add HTML or CSS to headers and footers
Add custom code to the layout
To add code to the layout of you site or page, use the text card. Use the Code View option on the text card to format your layout with custom code anywhere that you can add a text card. You can also apply CSS to a row in the row's settings. For more information, see Customize text with HTML.
Supported HTML tag
The HTML and CSS you apply to your sites or pages is automatically scanned for unsupported tags. If the code you provide is not supported, you will notice the code appears in its raw form. Use an internet search engine for "HTML 5" and the tag you used to find a valid alternative. For more information, see A new update to HTML rules in ArcGIS Hub is coming Septermeber 2020.
You may noticed ADDSTYLE text added to custom code you provide. This notes a location in your code that was sanitized during a scan for unsupported tags. If you have two style tags, for example, move any CSS to a single style tag.
For more information, see the following: