diff --git a/layouts/partials/custom-header.html b/layouts/partials/custom-header.html
index 9408010828..25514803a0 100644
--- a/layouts/partials/custom-header.html
+++ b/layouts/partials/custom-header.html
@@ -1,8 +1,20 @@
{{- $assetBusting := partialCached "assetbusting.gotmpl" . }}
-{{- if or (fileExists "static/css/custom.css") (fileExists "assets/css/custom.css") }}
-
+
+{{- $filePath := "css/custom.css" }}
+{{- with (resources.Get (printf "/%s" $filePath)) }}
+
+{{- else }}
+ {{- if (fileExists (printf "/static/%s" $filePath)) }}
+
+ {{- end }}
{{- end }}
-{{- if or (fileExists "static/js/custom.js") (fileExists "assets/js/custom.js") }}
-
+
+{{- $filePath := "js/custom.js" }}
+{{- with (resources.Get (printf "/%s" $filePath)) }}
+
+{{- else }}
+ {{- if (fileExists (printf "/static/%s" $filePath)) }}
+
+ {{- end }}
{{- end }}
\ No newline at end of file
diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt
index bf367badc3..a1fe327b45 100644
--- a/layouts/partials/version.txt
+++ b/layouts/partials/version.txt
@@ -1 +1 @@
-7.4.0+942fa83318bb9ac25455cbaae8ab764f90507bfb
\ No newline at end of file
+7.4.0+a8d787c37e4fd3e417f868b5124b6820a944b170
\ No newline at end of file