1

The login page in admin-bro says 'Welcome!'. I need to change it to something else. is it possible in AdminBro??

PS: I'm using version AdminBro v1.6.6. PPS: I've already tried this and the corresponding links. It doesn't work for me. Is it because of the version I have? Thanks in Advance!

Ritik Saxena
  • 694
  • 1
  • 11
  • 23

1 Answers1

8

Inside your adminbro index file:


const locale = {
  translations: {
    labels: {
      // change Heading for Login
      loginWelcome: '',
    },
    messages: {
      loginWelcome: '',
    },
  },
};

const adminBro = new AdminBro({
  // databases: [db],
  resources: allResources,
  rootPath: '/admin',
  locale,
  branding: {
    companyName: '',
    softwareBrothers: false,
    logo: '',
  },
});
Akhil Nayak
  • 403
  • 4
  • 8
  • Do you know hot to add the path for the logo correctly? I tried and it does not go through. – lumayara Oct 05 '21 at 18:35
  • @lumayara place files in public folder and load static assets in node app.use(express.static("public")); like this then branding: { companyName: "", softwareBrothers: false, logo: "/logo.svg", myTheme, favicon: "/favicon.png", }, – Muhammad Abdullah Nov 20 '21 at 23:45
  • Thanks @MuhammadAbdullah! I will try – lumayara Nov 22 '21 at 15:16