Created
May 12, 2015 13:19
-
-
Save rodica-andronache/b4ea26fad7cca88d8625 to your computer and use it in GitHub Desktop.
Add image size, for media uploader
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
| add_image_size( 'zerif-testimonial', 73, 73, true ); | |
| add_image_size( 'zerif-clients', 130, 50, true ); | |
| add_filter('image_size_names_choose', 'zerif_image_sizes'); | |
| function zerif_image_sizes($sizes) { | |
| $zerif_addsizes = array( "zerif-our-focus" => __( "Our focus","zerif"), "zerif_our_team_photo" => __("Our team","zerif"), "zerif-testimonial" => __("Testimonial", "zerif"), "zerif-clients" => __("Client logo","zerif") ); | |
| $zerif_newsizes = array_merge($sizes, $zerif_addsizes); | |
| return $zerif_newsizes; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment