Created
August 12, 2016 19:37
-
-
Save skyshab/415f62435b44ca4044a9af42bceeee6f to your computer and use it in GitHub Desktop.
Add filter for Divi image sizes
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
add_filter('et_theme_image_sizes', 'return_my_image_sizes'); | |
function return_my_image_sizes( $sizes ) | |
{ | |
$image_sizes = array( | |
'400x250' => 'et-pb-post-main-image', | |
'1080x675' => 'et-pb-post-main-image-fullwidth', | |
'400x284' => 'et-pb-portfolio-image', | |
'510x382' => 'et-pb-portfolio-module-image', | |
'1080x9999' => 'et-pb-portfolio-image-single', | |
); | |
return $image_sizes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment