From 5c4453281f424d8d397132c5d3c39bbe5e5b96f2 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Sat, 10 Feb 2024 22:12:57 +0100 Subject: [PATCH] Update development.md --- .../docs/admin/customize/development.md | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/documentation/docs/admin/customize/development.md b/documentation/docs/admin/customize/development.md index 48958cef..16c5597d 100644 --- a/documentation/docs/admin/customize/development.md +++ b/documentation/docs/admin/customize/development.md @@ -14,7 +14,41 @@ Stay tuned for the upcoming addition of our Module Development Guide, providing -## Running Custom Code +## Custom Code + + +### Custom CSS + +To add custom CSS code to OpenPanel interface, edit file `/usr/local/panel/templates/custom_code/in_header.html` and put your custom code inside. Please note + + +```bash +nano /usr/local/panel/templates/custom_code/custom.css +``` + +### Custom JS + + +```bash +nano /usr/local/panel/templates/custom_code/custom.js +``` + +### Code in Header + +To insert custom code within the `` tag of the OpenPanel interface, modify the content of the file located at `/usr/local/panel/templates/custom_code/in_header.html` and include your custom code within it. + +```bash +nano /usr/local/panel/templates/custom_code/in_header.html +``` + +### Code in Footer + +To insert custom code within the `