Skip to content

Instantly share code, notes, and snippets.

@BinaryMoon
Created July 12, 2019 22:02
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 BinaryMoon/0961da1d2431c61753b38564d86749f2 to your computer and use it in GitHub Desktop.
Save BinaryMoon/0961da1d2431c61753b38564d86749f2 to your computer and use it in GitHub Desktop.
<?php
/**
* Plugin Name: Change Header Image Size
* Plugin URI: https://prothemedesign.com
* Description: Change the size of the header image.
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
*/
/**
* Change the header width.
*
* @param int $old_width Old width, we can ignore it.
* @return int
*/
function broadsheet_new_header_width( $old_width ) {
return 1200;
}
add_filter( 'broadsheet_header_width', 'broadsheet_new_header_width', 20 );
/**
* Change the header height.
*
* @param int $old_height Old height, we can ignore it.
* @return int
*/
function broadsheet_new_header_height( $old_height ) {
return 500;
}
add_filter( 'broadsheet_header_height', 'broadsheet_new_header_height', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment