Skip to content

Instantly share code, notes, and snippets.

@miklb
Last active February 28, 2018 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miklb/49c39c49e93c2a69ad37d8b59c36ed2c to your computer and use it in GitHub Desktop.
Save miklb/49c39c49e93c2a69ad37d8b59c36ed2c to your computer and use it in GitHub Desktop.
Override ZenPress header image dimensions
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