SERVICE PORTAL - GOOGLE FONTS
How to use Google Fonts in the Service Portal.
Also see my article, Service Portal: Custom Fonts to use other fonts.
STEP 1: GO TO GOOGLE FONTS
STEP 2: SELECT A FONT AND URL
Select a font you want to use, after you select it, copy the URL
STEP 3: SELECT THEME
- Login into ServiceNow as an admin
- Go to ServiceNow > Portals
- Select your portal, usually the portal with URL suffix of sp
- Open your theme, usually “Stock
STEP 4: ADD CSS INCLUDE FOR CSS FILE URL
- On the Theme Form, at the bottom click the CSS Includes Related List
- Click New
- Name: "Lobster" or your font name
- Select Source: URL
- Add your google Font URL like: https://fonts.googleapis.com/css?family=Lobster
- Order: 10
- Right Click the header and select Save
STEP 5: ADD CSS INCLUDE AND STYLESHEET
- Go back to your Theme
- Add a new CSS Include.
- Name: Custom CSS
- Source: Stylesheet
- Order: 50
- Right Click the header and select Save
- Click the Magnifying glass on the stylesheet field
- Click New
- Give it a name, like "myCustom.css" or something more creative
- Click Submit
STEP 6: ADD CSS
- Click the "info" button next to the stylesheet you created
- Adjust the CSS and click save
BELOW IS SOME EXAMPLE CSS
/* Change Homepage Header Font */
#homepage-search > div > h1 {
font-family: 'Lobster', sans-serif;
font-weight: 400;
}
/* Change H2 Font */
h2 {
font-family: 'Lobster', sans-serif !important;
font-weight: 400;
}
/* Change H3 Font */
h3 {
font-family: 'Lobster', sans-serif;
font-weight: 400;
}
Very Nice article,Keep Updating.
ReplyDeleteServicenow Admin Online Training