Last active
February 28, 2018 16:49
-
-
Save miklb/49c39c49e93c2a69ad37d8b59c36ed2c to your computer and use it in GitHub Desktop.
Override ZenPress header image dimensions
This file contains 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
function zenpress_setup() | |
{ | |
// This theme supports a custom header | |
// Change the width and height here | |
$cooking_header_args = array( | |
'width' => 1250, | |
'height' => 400, | |
'header-text' => true, | |
); | |
add_theme_support('custom-header', $cooking_header_args); | |
} | |
/** | |
* Tell WordPress to run zenpress_setup() when the 'after_setup_theme' hook is run. | |
*/ | |
add_action('after_setup_theme', 'zenpress_setup'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment