Customize the Content Portal Style
Overwriting the default Heretto Deploy Portal style enables you to customize its look and feel.
If you want to maintain your CSS code on a server external to Heretto CCMS, you can add the following code to the config.json
file to call and apply the CSS.
"stylesheets": ["your-server-url/custom.css"]
-
Prepare your sitemap for portal customizations. See Prepare a Sitemap for Content Portal Customizations.
-
If needed, change the default starter theme. See Starter Themes Reference.
Any configuration, style, behavior, or content changes that you make to the sitemaps associated with your Heretto Deploy Portal instances are instantaneous.
Keep the following guidelines in mind when styling your portal:
- Avoid using negative values for
margin
andpadding
properties. - Avoid using percent values. Try using
flex
orflex-basis
properties. - If you use percent values, the value should a base 8 root percent.
For example, you can use:
100%
,50%
,25%
,6.25%
,3.125%
. - Use
flex
for general layout properties. - Use
grid
for specific use cases like lists and items that need to be fixed to a certain number.
Verify the configuration changes by opening your portal in a web browser.