Strapi v4 unable to override Home page

Viewed 376

I have a task to override most of admin panel pages with custom, however I couldn’t do that. I created the same directory structure as in strapi github repo for admin package, but nothing happened

src
├── extensions
│   ├── admin
│   │   └── admin
│   │       └── src
│   │           └── pages
│   │               └── HomePage
│   │                   ├── ContentBlocks.js
│   │                   ├── HomeHeader.js
│   │                   ├── index.js
│   │                   └── SocialLinks.js
│   └── content-manager
│       └── strapi-server.js
├── index.js
├── plugins
└── themes
    └── override.cs

Update 03/08/2022

It looks like Strapi team decided to remove customization options in v4, so if you want to override something like dashboard pages you'll have to use patch-package

1 Answers

There is a complete section in the official docs called Admin panel customization.

According to the docs, you can do a lot of customization options, which are:

Customizing the admin panel is helpful to better reflect your brand identity or to modify some default Strapi behavior:

  • The access URL, host and port can be modified through the server configuration.
  • The configuration object allows replacing the logos and favicon, defining locales and extending translations, extending the theme, and disabling some Strapi default behaviors like displaying video tutorials or notifications about new Strapi releases.
  • The WYSIWYG editor can be replaced or customized.
  • The forgotten password email can be customized with a template and variables.
  • The webpack configuration based on webpack 5 can also be extended foradvanced customization.
Related