Add New Image Size Cropping Sizes

//Function To Inyect <head> Start
function custom_features(){
    //register_nav_menu('customMenuLocation', 'Custom Nav Menu Location');
    //Will use only footer menus
    register_nav_menu('customFooterLocationOne', 'Custom Footer Menu Location One');
    register_nav_menu('customFooterLocationTwo', 'Custom Footer Menu Location Two');
    add_theme_support('title-tag');
    //Add Featured Image To Blog Pages
    add_theme_support('post-thumbnails');
    //Add custom size images name, width px, height px, Crop? TRUE
    add_image_size('professorLandscape', 400, 260, true);
    add_image_size('professorPortrait', 480, 650, true);

}
//Trigger Function custom_features()
add_action('after_setup_theme', 'custom_features');
//Inyect <head> End
Scroll to Top