From 8e886feae940f50acd3f781829233bf67ebbfe52 Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Wed, 30 Aug 2017 11:32:26 -0300 Subject: [PATCH] Support header text color. --- app/setup.php | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/app/setup.php b/app/setup.php index e06e9b8..c153f0f 100644 --- a/app/setup.php +++ b/app/setup.php @@ -79,7 +79,7 @@ add_action('after_setup_theme', function () { 'default-image' => asset_path('images/header.jpg'), 'width' => 1650, 'height' => 880, - // 'default-text-color' => '', + 'default-text-color' => '#000', // 'header-text' => true, // 'uploads' => true, // 'wp-head-callback' => '', @@ -203,7 +203,8 @@ add_action('after_setup_theme', function () { add_action('wp_head', function () { $primary = get_option('pb_network_primary_color'); $secondary = get_option('pb_network_secondary_color'); - if ($primary || $secondary) { ?> + $header_text_color = get_header_textcolor(); + if ($primary || $secondary || $header_text_color) { ?>