Customize MATLAB Web App Server Apps Home Page
To change the title, background color, font type, and font size of the banner in
the apps home page, navigate to the customization
folder and edit
the CustomConstants.json
and custom-css.css
files.
Operating System | Default Location of Command-Line Scripts |
---|---|
Windows® (Administrator) |
|
Linux® (sudo) |
|
macOS (sudo) |
|
Change the Banner Title
Open the
CustomConstants.json
file in a text editor.{ "WEB_APPS_HEADER": "MATLAB Web App Server" }
Change the
"MATLAB Web App Server"
default title to a custom title. The maximum length of the title can be around 50 characters depending on the font type and size.Save the file and refresh the apps home page.
Change the Background Color, Font Type, and Font Size of the Banner
Open the
custom-css.css
file in a text editor./* ----------------------------------------------------------------- CSS that can be customized to accomodate company branding ----------------------------------------------------------------- */ /* Banner Color */ .clientmdwas .headerBanner { background-color: rgb(32, 126, 178); } /* Banner Title Font and Font Size*/ /* Recommended default settings */ .clientmdwas .bannerTitle { font-family: Arial, cursive; font-size: 28px; /* Recommended range 20-30px, depending on font family used */ }
To change the banner color, set the
background-color
property to a valid CSS color. For details, see CSS Colors.To change the font type, set the
font-family
property to a valid CSS font type. For details, see CSS Fonts.To change the font size, set the
font-size
property to a valid CSS font size. The recommended range is 20-30px. For details, see CSS Font Size.Save the file and refresh the apps home page.