Created
October 20, 2014 15:04
-
-
Save richerimage/f8a320e7e0645a7ad6e7 to your computer and use it in GitHub Desktop.
Add Image Sizes
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
| class dna_custom_class extends thesisdna { | |
| public function __construct() { | |
| add_image_size('Letterbox', 460, 258, true ); | |
| add_filter('image_size_names_choose', array($this, 'my_custom_sizes')); | |
| } | |
| public function my_custom_sizes( $sizes ) { | |
| return array_merge($sizes, array( | |
| 'Letterbox' => __('Letterbox'), | |
| )); | |
| } | |
| } new dna_custom_class; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment