WP Theme Customizer – Responsive Elements

You could output large image inside an inline @media block assuming you are talking about window width and not literally screen width. Also providing a default if neither option is set so first if statement is not required. .thumbnail {width: <? php echo get_option(‘thumbnail_size_medium’) ?: $default_size; ?>;} <?php if( get_option(‘thumbnail_size_large’) ) { ?>@media ( min-width: … Read more

Create various image sizes ad hoc

You could, but I wouldn’t recommend doing it on the fly as it would take up unnecessary page resources each time the user loads the page. A better way to do it would put in the add_image_size hook you mentioned into the functions file, then install a plugin to regenerate thumbnails. https://wordpress.org/plugins/regenerate-thumbnails/ I’ve used this … Read more