Created
April 21, 2021 11:16
-
-
Save BinaryMoon/4a007c0967177ec8e6a75212d48be35c to your computer and use it in GitHub Desktop.
Change thumbnail sizes in the Broadsheet theme
This file contains hidden or 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 broadsheet_archive_image_size() { | |
// Post listing image size. | |
add_image_size( 'broadsheet-archive', 200, 160, true ); | |
// Featured image size. | |
add_image_size( 'broadsheet-feature', 260, 163, true ); | |
} | |
add_action( 'after_setup_theme', 'broadsheet_archive_image_size', 99 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment