Remove Image Sizes in Media Settings Page

Note: you shouldn’t remove any of the default images since they’re all highly used throughout the WordPress admin. For example, on the media library page all those image blocks are technically “medium” sized images scaled down. If you click an image it will display the “large” image if possible. Otherwise, these default to show a … Read more

Image large size [closed]

Your css is doing it. Replace following css if not being used anywhere else. If you’re not comfortable then ask your designer to do it line 1213 .thumb-box { position: relative; width: 100%; height: auto; } line 2321 .box img { -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -o-transition: all 0.3s ease; -ms-transition: all … Read more

Understanding WordPress image sizes and responsive images

function adjust_image_sizes_attr( $sizes, $size ) { $sizes=”(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px”; return $sizes; } add_filter( ‘wp_calculate_image_sizes’, ‘adjust_image_sizes_attr’, 10 , 2 ); As outlined here: https://www.smashingmagazine.com/2015/12/responsive-images-in-wordpress-core/

Random image loader

Try to see if this works, I used scandir because I prefer it. The problem was that glob, like scandir, only works with paths on the server’s file system, not URLs: function footer_image(){ $imagesDir = get_stylesheet_directory() . ‘/images/footer’; $imagesUri = get_stylesheet_directory_uri() . ‘/images/footer/’; $images = array_diff( scandir( $imagesDir, 1 ), array( ‘.’, ‘..’ ) ); … Read more

Where do I locate theme image files

Learn to use the developer tools in your browser; see Firefox or Chrome or Safari or IE to look at the rendered browser source to locate the URL for the image. The image could be loading from a third party, the theme folder, etc. Using dev tools is more reliable than simply viewing browser source, … Read more