Created
August 21, 2014 01:36
-
-
Save hitsujixgit/9e672dea02c2e48a9034 to your computer and use it in GitHub Desktop.
Enable custom header on WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// カスタムヘッダーを有効にする | |
$custom_header_defaults = array( | |
'default-image' => get_bloginfo('template_url').'/img/sky_2x.jpg', | |
'width' => 1800, | |
'height' => 400, | |
'header-text' => false, //ヘッダー画像上にテキストをかぶせる | |
); | |
add_theme_support( 'custom-header', $custom_header_defaults ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment