Custom admin interface title and favicon #7506
Replies: 6 comments 7 replies
-
Great idea @ali-d-coded This isn't currently possible. I'm making this a feature request 🙇 |
Beta Was this translation helpful? Give feedback.
-
Did this get implemented? |
Beta Was this translation helpful? Give feedback.
-
For title, I found a simple hack:
import { useEffect } from "react"
export const useCustomTitle = (cmsTitleBase: string) =>
useEffect(() => {
const currentTitle = document.title
const newTitle = currentTitle.replace("Keystone", cmsTitleBase)
if (newTitle !== currentTitle) document.title = newTitle
}) |
Beta Was this translation helpful? Give feedback.
-
You can replace existing favicon with the following method getAdditionalFiles: [
async (config: KeystoneConfig) => [
{
mode: 'copy',
inputPath: Path.join(pkgDir, 'public', 'favicon.ico'),
outputPath: 'public/favicon.ico',
},
],
], |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I managed to do it by putting the new favicon.ico in the public folder, and then adding the public folder as a storage space in keystone.ts. In the end it worked just like the logo, which also only works per documentation if we put the file in a storage space existent in keystone.ts: Apart from the Logo settings in config.tsx per documentation:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How can I remove keystone's default title and favicon and replace it with my own? is it possible?
Beta Was this translation helpful? Give feedback.
All reactions