Pictures randomly replaced by blue question mark
Pictures randomly replaced by blue question mark
Pictures randomly replaced by blue question mark
WordPress Multisite: Images moved to /sites/1?
I’ve had issues when moving WP sites in the past. I’m guessing you have gone to settings > permalinks and clicked save to get your interior page links working? For image links, if you go to settings > media you should see only your thumbnail sizes. If you see a textbook that has a file … Read more
Auto Generate Thumbnail
You get $sizes as array, where size name is a value, not a key Try this //remove sizes with init hook and remove_image_size add_action(‘init’, function ($sizes) { remove_image_size(‘2048×2048’); remove_image_size(‘1536×1536’); return $sizes; }); // or just return sizes you need add_filter(‘intermediate_image_sizes’, function ($sizes) { return [‘thumbnail’,’medium’,’large’]; });
I am unsure of the issue. If it is simply the text is too large, try using CSS to scale the font size. .gallery-item h3 { font-size: 1rem; }
The problem was being caused by the smush’s lazy load feature, I just excluded those galleries and now everything is fine
Found the solution: It can be turned off: add_filter( ‘big_image_size_threshold’, ‘__return_false’ ); More: here
To make your existing code work you’ll also need to override has_post_thumbnail: add_filter( ‘has_post_thumbnail’, ‘__return_true’ ); since your theme is probably guarding get_the_post_thumbnail() with has_post_thumbnail(), so that now needs to return true in the default case. However there’s still a chance that this won’t work, if the theme you’re using goes directly to get_post_thumbnail_id(). To … Read more
Trouble with Uploading and Displaying Images