Raindrops 1.135にバグが見つかりました。
functions.php の、$raindrops_page_width に、幅を指定し、オリジナルの固定ページ幅で表示する設定を行った場合に、ヘッダー画像が表示できなくなる現象
参考:
/**
* Original page width implementation by manual labor
*
* If you need original page width
* you can specific pixel page width
* e.g. '$raindrops_page_width = '776';' is 776px page width.
*
*
*/
if ( ! isset( $raindrops_page_width ) ) {
$raindrops_page_width = '';
}
この問題が発生するのは、$raindrops_page_width=1200 など特定の値が設定されている場合のみ、発生します。
この問題を回避する方法
functions.phpの先頭(<?phpの前に)以下のコードを追加してください
add_filter( 'raindrops_header_image_css', 'bug_custom_doc_hotfix' );
function bug_custom_doc_hotfix( $css ){
$doc = raindrops_warehouse_clone( 'raindrops_page_width' );
$width = 1200;// $raindrops_page_widthに指定した値に変更してください
$height = 198; // 画像の高さに変更してください。
if( $doc == 'custom-doc' ) {
return str_replace( array( 'width:px;', 'height:0px;'),
array( 'width:'.$width.'px;', 'height:'.$height.'px;' ), $css );
}
return $css;
}