You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/PxWeb2/documentation/customization.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ You can:
10
10
- Change colors (design tokens).
11
11
- Adjust corner radii of UI elements.
12
12
- Replace fonts.
13
+
- Change logo and favicon
13
14
- Change topic icons.
14
15
- Limit table sizes.
15
16
- Control how languages appear in URLs.
@@ -116,6 +117,9 @@ Open `config/config.js` and set `apiUrl`:
116
117
'every fifth year',
117
118
]
118
119
},
120
+
homePage: {
121
+
en:'',
122
+
},
119
123
};
120
124
```
121
125
@@ -206,6 +210,9 @@ In `config/config.js`:
206
210
'every fifth year',
207
211
]
208
212
},
213
+
homePage: {
214
+
en:'',
215
+
},
209
216
};
210
217
```
211
218
@@ -237,6 +244,16 @@ To change the logo/favicon in PxWeb replace svgs in the image folder. The names
237
244
For image replace `images/logo.svg` with your own logo.
238
245
Replace `images/favicon.ico` / `images/favicon-darkmode.svg` with your own favicon.
239
246
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
+
240
257
### Adjust or fix text / translations
241
258
242
259
Edit the relevant `locales/<lang>/translation.json`.
0 commit comments