diff --git a/templates/common/base.html b/templates/common/base.html
index af1a55c8..515b67a0 100644
--- a/templates/common/base.html
+++ b/templates/common/base.html
@@ -800,11 +800,11 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
{{- template "fonts" . }}
+ {{- block "extra_css" .}}{{- end}}
{{- range .Branding.DefaultCSS}}
{{- end}}
- {{- template "globalstyle" .CSPNonce }}
- {{- block "extra_css" .}}{{- end}}
+ {{- template "globalstyle" .CSPNonce }}
{{- range .Branding.ExtraCSS}}
{{- end}}