Why isn’t my code working for WordPress adding different image sizes?

Question

// Theme Setup

function custom_theme_setup() {

// Navigation Menus
register_nav_menus(array(
‘primary’ => __(‘Primary Menu’),
‘footer’ => __(‘Footer Menu’),
));

// Add featured image support
add_theme_support(‘post-thumbnails’);
add_image_size(‘small-thumbnail’, 180, 120, true);
add_image_size(‘banner-image’, 920, 210, true);
}

add_action(‘after_setup_theme’, ‘custom_theme_setup’);

0
, , theJett 2 years 2019-11-23T20:43:48-05:00 0 Answers 67 views 0

Leave an answer

Browse
Browse