diff --git a/docs/administration/customizing-gitea.md b/docs/administration/customizing-gitea.md
index 100a570a..8b3e7541 100644
--- a/docs/administration/customizing-gitea.md
+++ b/docs/administration/customizing-gitea.md
@@ -136,7 +136,7 @@ The data is encoded and sent to the PlantUML server which generates the picture.
demo server at http://www.plantuml.com/plantuml, but if you (or your users) have sensitive data you
can set up your own [PlantUML server](https://plantuml.com/server) instead. To set up PlantUML rendering,
copy JavaScript files from https://gitea.com/davidsvantesson/plantuml-code-highlight and put them in your
-`$GITEA_CUSTOM/public/assets/` folder. Then add the following to `custom/footer.tmpl`:
+`$GITEA_CUSTOM/public/assets/` folder. Then add the following to `$GITEA_CUSTOM/templates/custom/footer.tmpl`:
```html
```
-到文件 `templates/custom/footer.tmpl`
+到文件 `$GITEA_CUSTOM/templates/custom/footer.tmpl`
您還需要下載庫 [Madeleine.js](https://github.com/beige90/Madeleine.js) 的內容並將其放置在 `$GITEA_CUSTOM/public/assets/` 文件夾下。
diff --git a/versioned_docs/version-1.22/administration/customizing-gitea.md b/versioned_docs/version-1.22/administration/customizing-gitea.md
index 175c08a4..f7260d55 100644
--- a/versioned_docs/version-1.22/administration/customizing-gitea.md
+++ b/versioned_docs/version-1.22/administration/customizing-gitea.md
@@ -139,7 +139,7 @@ The data is encoded and sent to the PlantUML server which generates the picture.
demo server at http://www.plantuml.com/plantuml, but if you (or your users) have sensitive data you
can set up your own [PlantUML server](https://plantuml.com/server) instead. To set up PlantUML rendering,
copy JavaScript files from https://gitea.com/davidsvantesson/plantuml-code-highlight and put them in your
-`$GITEA_CUSTOM/public/assets/` folder. Then add the following to `custom/footer.tmpl`:
+`$GITEA_CUSTOM/public/assets/` folder. Then add the following to `$GITEA_CUSTOM/templates/custom/footer.tmpl`:
```html
```
-to the file `templates/custom/footer.tmpl`
+to the file `$GITEA_CUSTOM/templates/custom/footer.tmpl`
You also need to download the content of the library [Madeleine.js](https://github.com/beige90/Madeleine.js) and place it under `$GITEA_CUSTOM/public/assets/` folder.
diff --git a/versioned_docs/version-1.23/administration/customizing-gitea.md b/versioned_docs/version-1.23/administration/customizing-gitea.md
index d7439b0f..2a89dd47 100644
--- a/versioned_docs/version-1.23/administration/customizing-gitea.md
+++ b/versioned_docs/version-1.23/administration/customizing-gitea.md
@@ -136,7 +136,7 @@ The data is encoded and sent to the PlantUML server which generates the picture.
demo server at http://www.plantuml.com/plantuml, but if you (or your users) have sensitive data you
can set up your own [PlantUML server](https://plantuml.com/server) instead. To set up PlantUML rendering,
copy JavaScript files from https://gitea.com/davidsvantesson/plantuml-code-highlight and put them in your
-`$GITEA_CUSTOM/public/assets/` folder. Then add the following to `custom/footer.tmpl`:
+`$GITEA_CUSTOM/public/assets/` folder. Then add the following to `$GITEA_CUSTOM/templates/custom/footer.tmpl`:
```html
```
-to the file `templates/custom/footer.tmpl`
+to the file `$GITEA_CUSTOM/templates/custom/footer.tmpl`
You also need to download the content of the library [Madeleine.js](https://github.com/beige90/Madeleine.js) and place it under `$GITEA_CUSTOM/public/assets/` folder.
diff --git a/versioned_docs/version-1.24/administration/customizing-gitea.md b/versioned_docs/version-1.24/administration/customizing-gitea.md
index b4a3dbd4..286ad558 100644
--- a/versioned_docs/version-1.24/administration/customizing-gitea.md
+++ b/versioned_docs/version-1.24/administration/customizing-gitea.md
@@ -136,7 +136,7 @@ The data is encoded and sent to the PlantUML server which generates the picture.
demo server at http://www.plantuml.com/plantuml, but if you (or your users) have sensitive data you
can set up your own [PlantUML server](https://plantuml.com/server) instead. To set up PlantUML rendering,
copy JavaScript files from https://gitea.com/davidsvantesson/plantuml-code-highlight and put them in your
-`$GITEA_CUSTOM/public/assets/` folder. Then add the following to `custom/footer.tmpl`:
+`$GITEA_CUSTOM/public/assets/` folder. Then add the following to `$GITEA_CUSTOM/templates/custom/footer.tmpl`:
```html