Hey Men, I am creating a WordPress theme that let us a person upload a custom image header while using built-in WordPress functions.
I've this occur my functions.php file:
define( 'HEADER_IMAGE_WIDTH', apply_filters( 'basic_header_image_width', 500 ) ); define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'basic_header_image_height', 150 ) );
So when a person uploads a brand new image, they have to crop the look to keep the 150x500 aspect ratio. What It must do is permit the user to crop the look, as lengthy because it fits inside a 500x150px box.
Is possible? Otherwise, I'd rather switch off the popping feature altogether.
Add your choices in the .imgAreaSelect() function call.