From 57a4c1b1b3d1a6adeabc139a5d7fce9e1314ea12 Mon Sep 17 00:00:00 2001 From: Alexander Agnarson Date: Fri, 20 Jul 2018 16:33:11 +0200 Subject: [PATCH] Fix header image option --- functions.php | 2 +- header.php | 29 ++++++++++++++++++++--------- style.css | 2 ++ 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/functions.php b/functions.php index bea6fca..23dd9cc 100644 --- a/functions.php +++ b/functions.php @@ -109,7 +109,7 @@ function blogrow_custom_header() { $args = array( 'default-image' => false, 'default-text' => false, - 'width' => 1460, + 'width' => 1160, 'height' => 300, 'flex-width' => true, 'flex-height' => true, diff --git a/header.php b/header.php index 0563064..cbdf2bc 100644 --- a/header.php +++ b/header.php @@ -62,15 +62,26 @@
-
- - -

- - - - -
+ +
+ + +

+ + + + +
+ + + + + +
diff --git a/style.css b/style.css index 0ea1bd3..bf76c4d 100644 --- a/style.css +++ b/style.css @@ -527,6 +527,8 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4); .site-title a { display: block; color: #000; max-width: 100%; } .site-title a img { display: block; max-width: 100%; max-height: 60px; height: auto; padding: 0; margin: 0 auto; -webkit-border-radius: 0; border-radius: 0; } .site-description { text-align: center; font-size: 16px; font-style: italic; color: #999; line-height: 30px; position: relative; z-index: 2; } +.site-header { margin-top: 30px; } +.site-image { display: block; margin: 0 auto; max-height: 400px; } #header .social-links { float: none; text-align: center; margin-top: 20px; } #header .social-links li { margin: 0 4px; }