Hi guys, I have one WP blog which I run since 6 months. All were going everything fine but today I noticed that the images of the posts have automatically became larger in size and the entire site became a mess because of big images. On discussing it with my friend, he told me that newer version of wordpress automatically increases the image site. Yes I updated to latest version. Now it is not possible to manually go to each posts as the posts are in thousands. Is there any ways i could use some code to restrict all the images to a size I want? or is there any other good way you could suggest to cope with this situation? Please help me out. Thanks in advance.
it's more helpful if you can provide your site URL here. Anyway, try to add this to your style.css. It should work well. img{max-width:100%;height:auto;} Code (markup):
I like what imgar suggested, that should work, but otherwise you might look for a plugin that can automatically adjust image sizes, there probably is one out there somewhere.