From 0ba5dd55bc8b6dfcd59ed5d9042149db5eef8ea9 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Mon, 4 Nov 2024 09:57:13 +0100 Subject: [PATCH] Fix cropping of header image --- includes/functions/_setup-theme.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/functions/_setup-theme.php b/includes/functions/_setup-theme.php index 8e219c42..32ec5e4b 100644 --- a/includes/functions/_setup-theme.php +++ b/includes/functions/_setup-theme.php @@ -174,7 +174,8 @@ function fictioneer_theme_setup() { array( 'flex-width' => true, 'flex-height' => true, - 'height' => get_theme_mod( 'header_image_height_max', 480 ) + 'height' => get_theme_mod( 'header_image_height_max', 480 ), + 'width' => (int) get_theme_mod( 'site_width', FICTIONEER_DEFAULT_SITE_WIDTH ) * 1.5 ) );