Last active
July 19, 2019 21:19
-
-
Save BinaryMoon/4fb55070fa7ba048a89d97ee8ff3383b to your computer and use it in GitHub Desktop.
Resize Chronicle images to 16:9
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 Archive Image Thumbnail size. | |
* Plugin URI: https://prothemedesign.com | |
* Description: Change the size of the archive image thumbnails so that they can be made full width. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* Text Domain: broadsheet | |
*/ | |
function chronicle_new_archive_image_size() { | |
add_image_size( 'chronicle-feature', 450, 250, false ); | |
} | |
add_action( 'after_setup_theme', 'chronicle_new_archive_image_size', 99 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment