Skip to content

Commit 5ec08d8

Browse files
Merge pull request #29 from PxTools/feature/PXWEB2-927-customize-homepage
Documentation for customizing homePage
2 parents 63c244f + 7573394 commit 5ec08d8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/PxWeb2/documentation/customization.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ You can:
1010
- Change colors (design tokens).
1111
- Adjust corner radii of UI elements.
1212
- Replace fonts.
13+
- Change logo and favicon
1314
- Change topic icons.
1415
- Limit table sizes.
1516
- Control how languages appear in URLs.
@@ -116,6 +117,9 @@ Open `config/config.js` and set `apiUrl`:
116117
'every fifth year',
117118
]
118119
},
120+
homePage: {
121+
en: '',
122+
},
119123
};
120124
```
121125

@@ -206,6 +210,9 @@ In `config/config.js`:
206210
'every fifth year',
207211
]
208212
},
213+
homePage: {
214+
en: '',
215+
},
209216
};
210217
```
211218

@@ -237,6 +244,16 @@ To change the logo/favicon in PxWeb replace svgs in the image folder. The names
237244
For image replace `images/logo.svg` with your own logo.
238245
Replace `images/favicon.ico` / `images/favicon-darkmode.svg` with your own favicon.
239246

247+
### Change logo URL
248+
By default you will come to the PxWeb start page when clicking the logo. However, it is possible to configure this. You can configure a new logo URL per language by editing `homePage` in `config/config.js`:
249+
250+
```js
251+
homePage: {
252+
en: 'https://www.mypxweb.com', // Set to your English homepage URL
253+
sv: 'https://www.mypxweb.com/sv/', // Set to your Swedish homepage URL
254+
},
255+
```
256+
240257
### Adjust or fix text / translations
241258

242259
Edit the relevant `locales/<lang>/translation.json`.
@@ -346,6 +363,9 @@ Toggle:
346363
'every fifth year',
347364
]
348365
},
366+
homePage: {
367+
en: '',
368+
},
349369
};
350370
```
351371

0 commit comments

Comments
 (0)