Sorry Raindrops 0.938 has bug.
Raindrops 0.938にバグがありました。ヘッダー画像を削除した場合でも、ヘッダー画像用のスペースがそのまま残ってしまいます。
当面の解決のために、functions.phpを書き換えていただく必要があります。
どうか、ご協力いただけますようお願いします。
Blank space exists When header image remove
Please open functions.php
line 2756
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
if ( ! function_exists( 'raindrops_header_image' ) ){ function raindrops_header_image($args = array()){ if ( 'blank' == get_theme_mod('header_textcolor', HEADER_TEXTCOLOR) or '' == get_theme_mod('header_textcolor', HEADER_TEXTCOLOR) ){ $description_style = ' style=display:none;'; $height = HEADER_IMAGE_HEIGHT.'px'; }elseif(preg_match("|[0-9a-f]{6}|si",get_header_textcolor())){ $description_style = ' style="color:#' . get_header_textcolor() . ';"'; $height = HEADER_IMAGE_HEIGHT.'px'; }else{ $description_style = ''; $height = 0; } //Please add this line. if(get_header_image() == ''){ $height = 0; $description_style = ' style="display:none;"'; } $defaults = array( 'img' => get_header_image(), 'height' => $height, 'color' => HEADER_TEXTCOLOR, 'style' => 'background-size:cover;', 'description' => get_bloginfo( 'description' ), 'description_style' => $description_style ); $args = wp_parse_args( $args, $defaults ); extract( $args, EXTR_SKIP ); $html = '<div id="%1$s" style="background-image:url(%2$s);height:%3$s;color:#%4$s;%5$s"><p %6$s>%7$s</p></div>'; $html = sprintf($html, 'header-image', esc_url($img), esc_html($height), esc_html($color), esc_html($style),// css needs > but this style is inline esc_html($description_style),// css needs > but this style is inline esc_html($description) ); return apply_filters( 'raindrops_header_image', $html ); } } |