Created
July 12, 2019 22:02
-
-
Save BinaryMoon/0961da1d2431c61753b38564d86749f2 to your computer and use it in GitHub Desktop.
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
<?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