diff --git a/layouts/partials/fragments/hero.html b/layouts/partials/fragments/hero.html
index 3fc6228a..3cf2b4a4 100644
--- a/layouts/partials/fragments/hero.html
+++ b/layouts/partials/fragments/hero.html
@@ -43,8 +43,10 @@
{{- print $.Params.title -}}
{{- end -}}
"
- {{- if .height }} height="{{ .height }}"{{- end -}}
- {{- if .width }} width="{{ .width }}"{{- end -}}
+ style="
+ {{- if .height }}height: {{ .height }} !important;{{- end -}}
+ {{- if .width }}width: {{ .width }} !important;{{- end -}}
+ "
>
{{- end }}
@@ -113,4 +115,4 @@
});
{{ end -}}
-{{ end -}}
\ No newline at end of file
+{{ end -}}