Strapi V4 Customize Page Using Patch-Package
I Want to Change the Text Inside Login Page with My Custom Text. I Make Some Changes on Node_Modules/@Strapi/Admin/Src/Pages/Authpage/Components/Login/Baselogin...
I want to change the text inside login page with my custom text. I make some changes on node_modules/@strapi/admin/src/pages/AuthPage/components/Login/BaseLogin.js
Before editing that file, I install patch-package dependencies into my project. Inside project package.json file I added "postinstall": "patch-package" too.
After make some changes on file, I run this command yarn patch-package @strapi/admin
After finished I saw there are patches folder created and inside that folder I can saw the file which have diff code.
But, when I re run the strapi admin frontend, on login page text which I already changed still display original text from strapi.
Is there any mistakes I made on the steps ?
I used strapi version 4.4.3
Thanks before.
2 Answers
For modifying texts and colors in the admin, you don't need to patch the stapi package, you should override the global theme of your application by going through /src/admin/app.js and exporting a theme object. See the docs related to that here (V4) : Visit
want you please try yarn run build after the patch folder was created. This will normally fix your problem.