From 0daba5b2fe3a9bf76698180516e865d1bdef54de Mon Sep 17 00:00:00 2001 From: Naveen giri <1naveengiri@gmail.com> Date: Tue, 24 Dec 2019 11:37:51 +0530 Subject: [PATCH] Add option for setting custom header width #8 --- lib/config.php | 1 + lib/init.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/config.php b/lib/config.php index 842bce7..3d5963a 100644 --- a/lib/config.php +++ b/lib/config.php @@ -49,6 +49,7 @@ if (!defined('DT_HEADER_TOP_BG_COLOR')) define('DT_HEADER_TOP_BG_COLOR', '#202020'); //header if (!defined('DT_HEADER_HEIGHT')) define('DT_HEADER_HEIGHT', '85px'); +if (!defined('DT_HEADER_WIDTH')) define('DT_HEADER_WIDTH', '1600px'); if (!defined('DT_HEADER_FIXED_TOP')) define('DT_HEADER_FIXED_TOP', '32px'); if (!defined('DT_HEADER_BG_COLOR')) define('DT_HEADER_BG_COLOR', "#2F2F2F"); if (!defined('DT_HEADER_TEXT_COLOR')) define('DT_HEADER_TEXT_COLOR', "#FFFFFF"); diff --git a/lib/init.php b/lib/init.php index d8a9016..70d5854 100644 --- a/lib/init.php +++ b/lib/init.php @@ -40,7 +40,7 @@ function directory_theme_setup(){ $args = array( 'default-text-color' => 'FFFFFF', 'height' => DT_HEADER_HEIGHT, - 'width' => 1600 + 'width' => DT_HEADER_WIDTH ); add_theme_support( 'custom-header', $args );